dev
dart 47 lines 1.54 KB
Raw
1 import 'package:cake_wallet/generated/i18n.dart';
2 import 'package:cake_wallet/src/widgets/primary_button.dart';
3 import 'package:flutter/material.dart';
4 import 'package:cake_wallet/src/widgets/alert_background.dart';
5
6 class InformationPage extends StatelessWidget {
7 InformationPage({required this.information, super.key});
8
9 final String information;
10
11 @override
12 Widget build(BuildContext context) {
13 return AlertBackground(
14 child: Center(
15 child: Container(
16 margin: EdgeInsets.only(left: 24, right: 24),
17 decoration: BoxDecoration(
18 borderRadius: BorderRadius.all(Radius.circular(30)),
19 color: Theme.of(context).colorScheme.surface,
20 ),
21 child: Column(
22 mainAxisSize: MainAxisSize.min,
23 children: <Widget>[
24 Container(
25 padding: EdgeInsets.fromLTRB(24, 28, 24, 24),
26 child: Text(
27 information,
28 textAlign: TextAlign.center,
29 style: Theme.of(context).textTheme.bodyMedium,
30 ),
31 ),
32 Padding(
33 padding: EdgeInsets.fromLTRB(10, 0, 10, 10),
34 child: PrimaryButton(
35 key: ValueKey('information_page_got_it_button_key'),
36 onPressed: () => Navigator.of(context).pop(),
37 text: S.of(context).got_it,
38 color: Theme.of(context).colorScheme.surfaceContainer,
39 textColor: Theme.of(context).colorScheme.onSurface,
40 ),
41 )
42 ],
43 ),
44 ),
45 ));
46 }
47 }