-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add transaction success info page (#1878)
- Loading branch information
1 parent
3ad0422
commit 9a60b01
Showing
5 changed files
with
100 additions
and
90 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'package:cake_wallet/generated/i18n.dart'; | ||
import 'package:cake_wallet/src/screens/Info_page.dart'; | ||
import 'package:flutter/cupertino.dart'; | ||
|
||
class TransactionSuccessPage extends InfoPage { | ||
TransactionSuccessPage({required this.content}) | ||
: super( | ||
imageLightPath: 'assets/images/birthday_cake.png', | ||
imageDarkPath: 'assets/images/birthday_cake.png', | ||
); | ||
|
||
final String content; | ||
|
||
@override | ||
bool get onWillPop => false; | ||
|
||
@override | ||
String get pageTitle => 'Transaction Sent Successfully'; | ||
|
||
@override | ||
String get pageDescription => content; | ||
|
||
@override | ||
String get buttonText => S.current.ok; | ||
|
||
@override | ||
Key? get buttonKey => ValueKey('transaction_success_info_page_button_key'); | ||
|
||
@override | ||
void Function(BuildContext) get onPressed => | ||
(BuildContext context) => Navigator.of(context).pop(); | ||
} |