round spot
customizable heat map interface analysis library.
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.
usage
import the package in your main file:
import 'package:round_spot/round_spot.dart' as round_spot;
⚠️ note: using a
round_spot
prefix is highly recommended to avoid potential name collisions and improve readability
setup
wrap your materialapp
widget to initialize the library:
void main() {
runapp(round_spot.initialize(
child: application()
));
}
add an observer for monitoring the navigator:
materialapp(
navigatorobservers: [ round_spot.observer() ]
)
configuration
provide the callbacks for saving the processed output:
round_spot.initialize(
heatmapcallback: (data, info) => sendheatmapimage(data)
)
configure the tool to better fit your needs:
round_spot.initialize(
config: round_spot.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:
round_spot.detector(
areaid: id,
child: listview(
children: /* children */,
),
)
Comments are closed.