Skip to content

Commit

Permalink
feat(#16) : start showcase onTap of icon icon button
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-ijaz committed Jun 14, 2023
1 parent 9913f36 commit 3679752
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/app/pages/parent_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ class _ParentPageState extends State<ParentPage>

_isShowCaseActivated == false
? WidgetsBinding.instance.addPostFrameCallback(
(_) => ShowCaseWidget.of(context)
.startShowCase([_settingsKey, _childListKey, _addKey]),
(_) => _startShowCase(),
)
: null;
}

void _startShowCase() {
return ShowCaseWidget.of(context).startShowCase(
[_settingsKey, _childListKey, _addKey],
);
}

@override
Widget build(BuildContext context) {
final auth = Provider.of<AuthBase>(context, listen: false);
Expand Down Expand Up @@ -203,8 +208,9 @@ class _ParentPageState extends State<ParentPage>
'Choose child to get more infos - scroll right ',
style: TextStyle(color: Colors.grey.shade400),
),
trailing: Icon(
Icons.info_outline_rounded,
trailing: IconButton(
onPressed: _startShowCase,
icon: Icon(Icons.info_outline_rounded),
color: Colors.deepOrangeAccent.shade100,
),
).p8,
Expand Down

0 comments on commit 3679752

Please sign in to comment.