This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from MXCzkEVM/sign_message_feat
Sign message feat
- Loading branch information
Showing
30 changed files
with
345 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export 'presentation/balance_panel.dart'; | ||
export 'presentation/balance_panel.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,5 +99,4 @@ class RecentTransactionsUtils { | |
); | ||
}).toList(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export 'alert_dialog.dart'; | ||
export 'bottom_sheet.dart'; | ||
export 'warning_dialog.dart'; | ||
export 'warning_dialog.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ class CardSizes { | |
child: child, | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
lib/features/dapps/subfeatures/open_dapp/widgets/typed_message_dialog.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import 'package:datadashwallet/features/dapps/subfeatures/open_dapp/widgets/typed_message_info.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:mxc_ui/mxc_ui.dart'; | ||
|
||
Future<bool?> showTypedMessageDialog( | ||
BuildContext context, { | ||
String? title, | ||
required String networkName, | ||
required String primaryType, | ||
required Map<String, dynamic> message, | ||
VoidCallback? onTap, | ||
}) { | ||
return showModalBottomSheet<bool>( | ||
context: context, | ||
useRootNavigator: true, | ||
isScrollControlled: true, | ||
isDismissible: false, | ||
backgroundColor: Colors.transparent, | ||
builder: (BuildContext context) => Container( | ||
padding: const EdgeInsets.only(left: 16, right: 16, top: 0, bottom: 44), | ||
decoration: BoxDecoration( | ||
color: ColorsTheme.of(context).screenBackground, | ||
borderRadius: const BorderRadius.only( | ||
topLeft: Radius.circular(20), | ||
topRight: Radius.circular(20), | ||
), | ||
), | ||
child: Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
MxcAppBarEvenly.title( | ||
titleText: title ?? '', | ||
action: Container( | ||
alignment: Alignment.centerRight, | ||
child: InkWell( | ||
child: const Icon(Icons.close), | ||
onTap: () => Navigator.of(context).pop(false), | ||
), | ||
), | ||
), | ||
TypeMessageInfo( | ||
message: message, | ||
networkName: networkName, | ||
primaryType: primaryType, | ||
onTap: onTap, | ||
), | ||
const SizedBox(height: 10), | ||
], | ||
), | ||
), | ||
); | ||
} |
Oops, something went wrong.