Skip to content
Snippets Groups Projects
Commit 60427463 authored by poka's avatar poka
Browse files

feat: can copy app version number

parent 83764194
No related branches found
No related tags found
1 merge request!56Fix/build ios
......@@ -144,6 +144,15 @@ class WalletsProfilesProvider with ChangeNotifier {
}
}
snackMessage(context,
{required String message, int duration = 2, double fontSize = 16}) {
final snackBar = SnackBar(
padding: const EdgeInsets.all(20),
content: Text(message, style: TextStyle(fontSize: fontSize)),
duration: Duration(seconds: duration));
ScaffoldMessenger.of(context).showSnackBar(snackBar);
}
snackCopyKey(context) {
final snackBar = SnackBar(
padding: const EdgeInsets.all(20),
......
......@@ -3,6 +3,7 @@
import 'package:bubble/bubble.dart';
import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/services.dart';
import 'package:gecko/globals.dart';
import 'package:gecko/models/chest_data.dart';
import 'package:gecko/models/g1_wallets_list.dart';
......@@ -188,8 +189,22 @@ class _HomeScreenState extends State<HomeScreen> {
),
])),
Align(
alignment: FractionalOffset.bottomCenter,
child: Text('Ğecko v$appVersion')),
alignment: FractionalOffset.bottomCenter,
child: InkWell(
key: keyCopyAddress,
splashColor: orangeC,
child: Padding(
padding: const EdgeInsets.all(20),
child: Text('Ğecko v$appVersion')),
onTap: () {
Clipboard.setData(
ClipboardData(text: 'Ğecko v$appVersion'));
snackMessage(context,
message:
'Le numéro de version de Ğecko a été copié dans votre presse papier',
duration: 4);
}),
),
const SizedBox(height: 20)
],
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment