Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğecko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Ğecko
Commits
60427463
Commit
60427463
authored
2 years ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
feat: can copy app version number
parent
83764194
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!56
Fix/build ios
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/providers/wallets_profiles.dart
+9
-0
9 additions, 0 deletions
lib/providers/wallets_profiles.dart
lib/screens/home.dart
+17
-2
17 additions, 2 deletions
lib/screens/home.dart
with
26 additions
and
2 deletions
lib/providers/wallets_profiles.dart
+
9
−
0
View file @
60427463
...
...
@@ -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
),
...
...
This diff is collapsed.
Click to expand it.
lib/screens/home.dart
+
17
−
2
View file @
60427463
...
...
@@ -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
)
],
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment