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:
@@ -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),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
@@ -12,7 +12,7 @@ dependencies:
|
||||
sdk: flutter
|
||||
http: ^0.13.5
|
||||
shared:
|
||||
path: ../server/shared
|
||||
path: ../shared
|
||||
|
||||
dev_dependencies:
|
||||
flutter_lints: ^2.0.0
|
||||
|
||||
Reference in New Issue
Block a user