FLUTTER ECOSYSTEM

stasgora/round-spot

사용자 정의 가능한 히트맵 인터페이스 분석 라이브러리

라운드 스팟 프로젝트 이미지
Stars
46
Forks
9
최근 푸시(UTC)
2021. 9. 11.
프로젝트 상태
활성
Stanisław Góra GitHub avatar
GITHUB User

Stanisław Góra ↗

Software Engineer · Building Alexa @ Amazon

AmazonGdańsk, Poland
언어Dart

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 16 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

icon
Round Spot

Customizable heat map interface analysis library

Pub likes build style: effective dart License: MIT

Banner

Round Spot simplifies the UI accessibility and behaviour analysis for Flutter applications by handling the data gathering and processing. It produces beautiful heat map visualizations that aim to make the UI improvement and troubleshooting easy and intuitive.

⚠️ Note: This tool still in its development and currently only offers local on device heat map generation. This limits the number of interactions that can be included in a single image and therefore can be considered as a preview.

Usage

Import the package in your main file:

import 'package:round_spot/round_spot.dart';
Setup

Wrap your MaterialApp widget to initialize the library:

void main() {
  runApp(initialize(
    child: Application()
  ));
}

Add an observer for monitoring the navigator:

MaterialApp(
  navigatorObservers: [ Observer() ]
)
Configuration

Provide the callbacks for saving the processed output:

initialize(
  localRenderCallback: (data, info) => sendHeatMapImage(data)
)

Configure the tool to better fit your needs:

initialize(
  config: Config(
    minSessionEventCount: 5,
    uiElementSize: 15,
    heatMapPixelRatio: 2.0,
  )
)
UI Instrumentation
Route naming

Route names are used to differentiate between pages. Make sure you are consistently specifying them both when using named routes and pushing PageRoutes (inside RouteSetting)

Scrollable widgets

To correctly monitor interactions with any scrollable space a Detector has to be placed as a direct parent of that widget:

Detector(
  areaID: id,
  child: ListView(
    children: /* children */,
  ),
)

Contributors

Created by Stanisław Góra

License

This tool is licenced under MIT License