dev
dart 33 lines 888 Bytes
Raw
1 import 'package:cake_wallet/generated/i18n.dart';
2 import 'package:cake_wallet/src/screens/Info_page.dart';
3 import 'package:flutter/cupertino.dart';
4
5 class TransactionSuccessPage extends InfoPage {
6 TransactionSuccessPage({required this.content})
7 : super(
8 imageLightPath: 'assets/images/birthday_cake.png',
9 imageDarkPath: 'assets/images/birthday_cake.png',
10 );
11
12 final String content;
13
14 @override
15 bool get onWillPop => false;
16
17 @override
18 String get pageTitle => 'Transaction Sent Successfully';
19
20 @override
21 String get pageDescription => content;
22
23 @override
24 String get buttonText => S.current.ok;
25
26 @override
27 Key? get buttonKey => ValueKey('transaction_success_info_page_button_key');
28
29 @override
30 void Function(BuildContext) get onPressed => (BuildContext context) {
31 if (context.mounted) Navigator.of(context).pop();
32 };
33 }