add some logic example

This commit is contained in:
Aleksey Filippov 2024-09-10 15:20:18 +04:00
parent 09f4f00199
commit 8979862916

View File

@ -65,6 +65,13 @@ class _MyHomePageState extends State<MyHomePage> {
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
Visibility(
visible: _counter > 10,
child: Text(
'Why are you clicking?',
style: Theme.of(context).textTheme.headlineMedium,
),
)
],
),
),