1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

code sharing sample: flat package directory (#1486)

This commit is contained in:
Kevin Moore
2022-10-20 09:00:41 -07:00
committed by GitHub
parent c21fcd6573
commit 6caaa0a3c9
19 changed files with 32 additions and 19 deletions

View File

@@ -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),
);
},
),
);