diff --git a/lib/app/pages/parent_page.dart b/lib/app/pages/parent_page.dart index dcd295f..2a52629 100644 --- a/lib/app/pages/parent_page.dart +++ b/lib/app/pages/parent_page.dart @@ -75,12 +75,17 @@ class _ParentPageState extends State _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(context, listen: false); @@ -203,8 +208,9 @@ class _ParentPageState extends State '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,