mask_guide 1.0.0 copy "mask_guide: ^1.0.0" to clipboard
mask_guide: ^1.0.0 copied to clipboard

A Masked guide implemented with ColorFilter.

Masked guide implemented with ColorFilter, refer by https://juejin.cn/post/7089087097218269197 #

Getting started #

import 'package:mask_guide/mask_guide.dart';

Usage #

First of all, add MaskGuideNavigatorObserver() in MaterialApp() #

MaterialApp(
 navigatorObservers: [MaskGuideNavigatorObserver()],
)

Usage of Custom Step Widget #

Extend the StepWidget and override preStep, nextStep, doneCallBack if you need.

To create a custom step widget, you should calculate the position of the widget yourself.

class CustomStepWidget extends StepWidget

@override
void preStep() {
 super.preStep();
 // todo: do something
}

@override
void nextStep() {
 super.nextStep();
 // todo: do something
}

@override
void doneCallBack() {
 super.doneCallBack();
 // todo: do something
}

Check example for more.

0
likes
130
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A Masked guide implemented with ColorFilter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on mask_guide