|
|
@ -35,15 +35,14 @@ class _InfoViewState extends State<InfoView>
|
|
|
|
elevation: 2,
|
|
|
|
elevation: 2,
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
onLongPress: () {
|
|
|
|
onLongPress: () {
|
|
|
|
Scaffold.of(context).hideCurrentSnackBar();
|
|
|
|
ScaffoldMessenger.of(context).hideCurrentSnackBar();
|
|
|
|
Clipboard.setData(ClipboardData(text: subTitle));
|
|
|
|
Clipboard.setData(ClipboardData(text: subTitle));
|
|
|
|
Scaffold.of(context).showSnackBar(SnackBar(
|
|
|
|
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
|
|
|
content: Text('已复制'),
|
|
|
|
content: Text('已复制'),
|
|
|
|
action: SnackBarAction(
|
|
|
|
action: SnackBarAction(
|
|
|
|
label: '确定',
|
|
|
|
label: '确定',
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () =>
|
|
|
|
Scaffold.of(context).hideCurrentSnackBar();
|
|
|
|
ScaffoldMessenger.of(context).hideCurrentSnackBar(),
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
));
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -76,15 +75,14 @@ class _InfoViewState extends State<InfoView>
|
|
|
|
title: Text(title),
|
|
|
|
title: Text(title),
|
|
|
|
subtitle: Text(subTitle ?? ''),
|
|
|
|
subtitle: Text(subTitle ?? ''),
|
|
|
|
onLongPress: () {
|
|
|
|
onLongPress: () {
|
|
|
|
Scaffold.of(context).hideCurrentSnackBar();
|
|
|
|
ScaffoldMessenger.of(context).hideCurrentSnackBar();
|
|
|
|
Clipboard.setData(ClipboardData(text: subTitle));
|
|
|
|
Clipboard.setData(ClipboardData(text: subTitle));
|
|
|
|
Scaffold.of(context).showSnackBar(SnackBar(
|
|
|
|
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
|
|
|
content: Text('已复制'),
|
|
|
|
content: Text('已复制'),
|
|
|
|
action: SnackBarAction(
|
|
|
|
action: SnackBarAction(
|
|
|
|
label: '确定',
|
|
|
|
label: '确定',
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () =>
|
|
|
|
Scaffold.of(context).hideCurrentSnackBar();
|
|
|
|
ScaffoldMessenger.of(context).hideCurrentSnackBar(),
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
));
|
|
|
|
},
|
|
|
|
},
|
|
|
|