Skip to content

Commit 5d7c7ab

Browse files
info button
1 parent 959247a commit 5d7c7ab

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

lib/src/screens/welcome/welcome_page.dart

+11-4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ class WelcomePage extends BasePage {
2222
@override
2323
bool get resizeToAvoidBottomInset => false;
2424

25+
@override
26+
Widget trailing(BuildContext context) {
27+
return IconButton(
28+
icon: Icon(Icons.info_outline),
29+
onPressed: () {},
30+
);
31+
}
32+
2533
@override
2634
Widget body(BuildContext context) {
2735
final welcomeImage = currentTheme.type == ThemeType.dark ? welcomeImageDark : welcomeImageLight;
@@ -51,13 +59,13 @@ class WelcomePage extends BasePage {
5159
),
5260
Padding(
5361
padding: EdgeInsets.only(top: 5),
54-
child: highlightText(
55-
context, S.of(context).welcome_subtitle_new_wallet, S.of(context).create_new)),
62+
child: highlightText(context, S.of(context).welcome_subtitle_new_wallet,
63+
S.of(context).create_new)),
5664
SizedBox(height: 10),
5765
Padding(
5866
padding: EdgeInsets.only(top: 5),
5967
child: highlightText(context, S.of(context).welcome_subtitle_restore_wallet,
60-
S.of(context).restore_existing_wallet)),
68+
S.of(context).restore_existing_wallet)),
6169
],
6270
),
6371
],
@@ -98,7 +106,6 @@ class WelcomePage extends BasePage {
98106
}
99107

100108
RichText highlightText(BuildContext context, String text, String highlightWord) {
101-
102109
final regex = RegExp(highlightWord, caseSensitive: false);
103110
final matches = regex.allMatches(text);
104111

0 commit comments

Comments
 (0)