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
e47211f1
Commit
e47211f1
authored
1 year ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
fix: good display of wallet names on transaction screen
parent
a751b1eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#34291
waiting for manual action
Stage: format
Stage: build_and_test
Stage: package
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/screens/transaction_in_progress.dart
+16
-4
16 additions, 4 deletions
lib/screens/transaction_in_progress.dart
lib/widgets/payment_popup.dart
+11
-3
11 additions, 3 deletions
lib/widgets/payment_popup.dart
with
27 additions
and
7 deletions
lib/screens/transaction_in_progress.dart
+
16
−
4
View file @
e47211f1
...
...
@@ -12,11 +12,16 @@ import 'package:provider/provider.dart';
class
TransactionInProgress
extends
StatelessWidget
{
const
TransactionInProgress
(
{
Key
?
key
,
this
.
transType
=
'pay'
,
this
.
fromAddress
,
this
.
toAddress
})
{
Key
?
key
,
this
.
transType
=
'pay'
,
this
.
fromAddress
,
this
.
toAddress
,
this
.
toUsername
})
:
super
(
key:
key
);
final
String
transType
;
final
String
?
fromAddress
;
final
String
?
toAddress
;
final
String
?
toUsername
;
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -33,8 +38,15 @@ class TransactionInProgress extends StatelessWidget {
log
.
d
(
walletProfiles
.
address
);
final
from
=
fromAddress
??
myWalletProvider
.
getDefaultWallet
()
.
name
!
;
final
to
=
toAddress
??
getShortPubkey
(
walletProfiles
.
address
);
final
from
=
fromAddress
??
g1WalletsBox
.
get
(
myWalletProvider
.
getDefaultWallet
()
.
address
)
?.
username
??
myWalletProvider
.
getDefaultWallet
()
.
name
!
;
String
to
=
toAddress
??
walletProfiles
.
address
;
to
=
myWalletProvider
.
getWalletDataByAddress
(
to
)
?.
name
??
getShortPubkey
(
to
);
final
amount
=
walletProfiles
.
payAmount
.
text
;
String
actionName
=
''
;
final
bool
isUdUnit
=
configBox
.
get
(
'isUdUnit'
)
??
false
;
...
...
@@ -220,7 +232,7 @@ class TransactionInProgress extends StatelessWidget {
style:
const
TextStyle
(
fontSize:
18
),
),
Text
(
to
,
toUsername
??
to
,
textAlign:
TextAlign
.
center
,
style:
const
TextStyle
(
fontSize:
18
,
fontWeight:
FontWeight
.
w600
),
...
...
This diff is collapsed.
Click to expand it.
lib/widgets/payment_popup.dart
+
11
−
3
View file @
e47211f1
...
...
@@ -29,6 +29,8 @@ void paymentPopup(BuildContext context, String toAddress, String username) {
final
amountFocus
=
FocusNode
();
final
dropdownKey
=
GlobalKey
();
walletViewProvider
.
payAmount
.
text
=
''
;
Future
executeTransfert
()
async
{
String
?
pin
;
if
(
myWalletProvider
.
pinCode
==
''
)
{
...
...
@@ -56,7 +58,8 @@ void paymentPopup(BuildContext context, String toAddress, String username) {
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
{
return
const
TransactionInProgress
();
return
TransactionInProgress
(
toAddress:
toAddress
,
toUsername:
username
);
}),
);
}
...
...
@@ -333,7 +336,11 @@ void paymentPopup(BuildContext context, String toAddress, String username) {
backgroundColor:
orangeC
,
// foreground
),
onPressed:
canValidate
?
()
async
=
>
await
executeTransfert
()
?
()
async
{
// FocusScope.of(context).unfocus();
Navigator
.
pop
(
context
);
await
executeTransfert
();
}
:
null
,
child:
Text
(
'executeTheTransfer'
.
tr
(),
...
...
@@ -348,8 +355,9 @@ void paymentPopup(BuildContext context, String toAddress, String username) {
),
);
});
})
.
then
((
value
)
=
>
walletViewProvider
.
payAmount
.
text
=
''
)
;
});
}
//).then((value) => walletViewProvider.payAmount.text = ''
Future
<
void
>
infoFeesPopup
(
BuildContext
context
)
async
{
return
showDialog
<
void
>(
...
...
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