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