mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
code sharing sample: flat package directory (#1486)
This commit is contained in:
@@ -78,7 +78,11 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
(int val) => setState(
|
||||
() {
|
||||
_counter = val;
|
||||
isWriting = true;
|
||||
// Leave this up for at least a split second
|
||||
Future.delayed(
|
||||
const Duration(milliseconds: 200),
|
||||
() => setState(() => isWriting = false),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user