|
|
|
@ -120,6 +120,64 @@ class AboutPageStateFluent extends AboutPageState<AboutPageFluent> {
|
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
if (AboutPageState.download == 'linux' && log.linuxLink != null) |
|
|
|
|
GestureDetector( |
|
|
|
|
onSecondaryTap: () { |
|
|
|
|
Clipboard.setData(ClipboardData(text: log.linuxLink!.toString())); |
|
|
|
|
// ScaffoldMessenger.of(context).showSnackBar(const SnackBar( |
|
|
|
|
// content: Text('Link copied to clipboard'), |
|
|
|
|
// )); |
|
|
|
|
}, |
|
|
|
|
onLongPress: () { |
|
|
|
|
Clipboard.setData(ClipboardData(text: log.linuxLink!.toString())); |
|
|
|
|
// ScaffoldMessenger.of(context).showSnackBar(const SnackBar( |
|
|
|
|
// content: Text('Link copied to clipboard'), |
|
|
|
|
// )); |
|
|
|
|
}, |
|
|
|
|
onTap: () { |
|
|
|
|
launchUrl( |
|
|
|
|
log.linuxLink!, |
|
|
|
|
mode: LaunchMode.externalApplication, |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
behavior: HitTestBehavior.translucent, |
|
|
|
|
child: const Tooltip( |
|
|
|
|
message: 'Download Linux ZIP', |
|
|
|
|
child: Padding( |
|
|
|
|
padding: EdgeInsets.all(4), |
|
|
|
|
child: Icon(FluentIcons.download), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
if (AboutPageState.download == 'windows' && log.windowsLink != null) |
|
|
|
|
GestureDetector( |
|
|
|
|
onSecondaryTap: () { |
|
|
|
|
Clipboard.setData(ClipboardData(text: log.windowsLink!.toString())); |
|
|
|
|
// ScaffoldMessenger.of(context).showSnackBar(const SnackBar( |
|
|
|
|
// content: Text('Link copied to clipboard'), |
|
|
|
|
// )); |
|
|
|
|
}, |
|
|
|
|
onLongPress: () { |
|
|
|
|
Clipboard.setData(ClipboardData(text: log.windowsLink!.toString())); |
|
|
|
|
// ScaffoldMessenger.of(context).showSnackBar(const SnackBar( |
|
|
|
|
// content: Text('Link copied to clipboard'), |
|
|
|
|
// )); |
|
|
|
|
}, |
|
|
|
|
onTap: () { |
|
|
|
|
launchUrl( |
|
|
|
|
log.windowsLink!, |
|
|
|
|
mode: LaunchMode.externalApplication, |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
behavior: HitTestBehavior.translucent, |
|
|
|
|
child: const Tooltip( |
|
|
|
|
message: 'Download Windows App ZIP', |
|
|
|
|
child: Padding( |
|
|
|
|
padding: EdgeInsets.all(4), |
|
|
|
|
child: Icon(FluentIcons.download), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|