Last updated:
0 purchases
mask guide
Masked guide implemented with ColorFilter, refer by https://juejin.cn/post/7089087097218269197 #
Getting started #
import 'package:mask_guide/mask_guide.dart';
copied to clipboard
Usage #
First of all, add MaskGuideNavigatorObserver() in MaterialApp() #
MaterialApp(
navigatorObservers: [MaskGuideNavigatorObserver()],
)
copied to clipboard
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
}
copied to clipboard
Check example for more.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.