add some logic example
This commit is contained in:
parent
09f4f00199
commit
8979862916
@ -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,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user