Skip to main content

coachlight 0.1.0 copy "coachlight: ^0.1.0" to clipboard
coachlight: ^0.1.0 copied to clipboard

Spotlight coach marks for Flutter. Dims the screen, highlights one widget at a time and explains it in a small card. No dependencies beyond Flutter.

coachlight #

Spotlight coach marks for Flutter. The screen is dimmed, one widget at a time is cut out and a small card explains it, with Next, Skip and a "1 of 3" counter.

  • No dependencies beyond the Flutter SDK
  • Steps whose widget is not on screen are skipped automatically
  • Scrolls the target into view; re-measures on rotation and resize
  • Places the card above or below the target and keeps it on screen
  • Works right-to-left, with large text and with screen readers
  • Respects the device's "remove animations" setting
  • Stores nothing: remembering which tours were seen is up to you (CoachMemory)

Use #

final addKey = GlobalKey();

FloatingActionButton(key: addKey, onPressed: add, child: const Icon(Icons.add));

final result = await CoachTour.show(context, steps: [
  CoachStep(target: addKey, title: 'Add', body: 'Create a new item.'),
]);
// result: CoachResult.completed | skipped | dismissed

Show a tour only once:

await CoachTour.showOnce(context,
    id: 'home', memory: myMemory, steps: steps);

Translate the buttons with CoachLabels and change the look with CoachStyle.

How it ends #

Result When
completed Done pressed on the last step
skipped Skip pressed
dismissed Tap on the dimmed area, or the system back button

A tap on the highlighted widget moves to the next step.

Getting it #

Until it is on pub.dev, use it from Git:

dependencies:
  coachlight:
    git:
      url: https://github.com/awlankar/coachlight.git
      ref: v0.1.0

Try the example #

cd example
flutter create .   # one-time: adds the platform folders
flutter run
0
likes
0
points
584
downloads

Publisher

unverified uploader

Weekly Downloads

Spotlight coach marks for Flutter. Dims the screen, highlights one widget at a time and explains it in a small card. No dependencies beyond Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on coachlight