diff --git a/lib/main.dart b/lib/main.dart index 8fc9c2d..d8c5395 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -65,6 +65,13 @@ class _MyHomePageState extends State { '$_counter', style: Theme.of(context).textTheme.headlineMedium, ), + Visibility( + visible: _counter > 10, + child: Text( + 'Why are you clicking?', + style: Theme.of(context).textTheme.headlineMedium, + ), + ) ], ), ),