Skip to content

Commit 59fb6ba

Browse files
committed
添加复制地址的提示
1 parent dc2b172 commit 59fb6ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/main_window.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@ class _MainWindowState extends State<MainWindow> with WindowListener {
383383
child: GestureDetector(
384384
onTap: (){
385385
FlutterClipboard.copy("$address:${sharePort.text}");
386+
ScaffoldMessenger.of(context).showSnackBar(
387+
const SnackBar(
388+
content: Text("已复制"),
389+
duration: Duration(milliseconds: 500),
390+
),
391+
);
386392
},
387393
child: ValueListenableBuilder(
388394
valueListenable: sharePort,

0 commit comments

Comments
 (0)