From 89798629160ee989be03ac41ab9f1cb6cfe48c52 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Tue, 10 Sep 2024 15:20:18 +0400 Subject: [PATCH] add some logic example --- lib/main.dart | 7 +++++++ 1 file changed, 7 insertions(+) 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, + ), + ) ], ), ),