tutorial_coach_mark
tutorial_coach_mark copied to clipboard
Add attribute to set IgnorePointer false on textSkip
Summary
Currently, the Text(widget.textSkip, ...)
is hidden with the usage of IgnorePointer
.
ref: https://github.com/RafaelBarbosatec/tutorial_coach_mark/blob/d3089dc97a459a48598d931890aa844177278ea4/lib/src/widgets/tutorial_coach_mark_widget.dart#L205-L231
This results in difficulties on testing purpose. Previously, I can use flutter_driver
and search value of textSkip
to trigger tap on it.
Expected Behavior
Add attribute bool? ignoringSkip = true
to TutorialCoachMarkWidget
that let developer un-ignore the textSkip
currently there is workaround with flutter_driver
by looking for the ancestor of IgnorePointer
which type is InkWell
, which is the descendant of TutorialCoachMarkWidget
:
static final coachmarkOkeChildren = find.ancestor(of: find.byType('IgnorePointer'), matching: find.byType('InkWell'));
static final coachmarkOke = find.descendant(of: find.byType('TutorialCoachMarkWidget'), matching: coachmarkOkeChildren);
but if the attribute ignoringSkip
added, this workaround can be omitted and we can just use the previous way:
static final coachmarkOke = find.text('SKIP');