fix copy error.
This commit is contained in:
+5
-3
@@ -136,7 +136,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
appBar: AppBar(),
|
|
||||||
backgroundColor: status == Status.standBy
|
backgroundColor: status == Status.standBy
|
||||||
? Colors.transparent
|
? Colors.transparent
|
||||||
: Colors.black12.withOpacity(
|
: Colors.black12.withOpacity(
|
||||||
@@ -235,8 +234,11 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
Clipboard.setData(
|
Clipboard.setData(
|
||||||
ClipboardData(text: code.content),
|
ClipboardData(text: code.content),
|
||||||
);
|
).then((_) {
|
||||||
exit(0);
|
Future.delayed(const Duration(milliseconds: 300), () {
|
||||||
|
exit(0);
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
child: const Text(
|
child: const Text(
|
||||||
'复制',
|
'复制',
|
||||||
|
|||||||
Reference in New Issue
Block a user