Skip to content

Commit

Permalink
info button
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii-Borodenko committed Nov 19, 2024
1 parent 959247a commit 5d7c7ab
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/src/screens/welcome/welcome_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ class WelcomePage extends BasePage {
@override
bool get resizeToAvoidBottomInset => false;

@override
Widget trailing(BuildContext context) {
return IconButton(
icon: Icon(Icons.info_outline),
onPressed: () {},
);
}

@override
Widget body(BuildContext context) {
final welcomeImage = currentTheme.type == ThemeType.dark ? welcomeImageDark : welcomeImageLight;
Expand Down Expand Up @@ -51,13 +59,13 @@ class WelcomePage extends BasePage {
),
Padding(
padding: EdgeInsets.only(top: 5),
child: highlightText(
context, S.of(context).welcome_subtitle_new_wallet, S.of(context).create_new)),
child: highlightText(context, S.of(context).welcome_subtitle_new_wallet,
S.of(context).create_new)),
SizedBox(height: 10),
Padding(
padding: EdgeInsets.only(top: 5),
child: highlightText(context, S.of(context).welcome_subtitle_restore_wallet,
S.of(context).restore_existing_wallet)),
S.of(context).restore_existing_wallet)),
],
),
],
Expand Down Expand Up @@ -98,7 +106,6 @@ class WelcomePage extends BasePage {
}

RichText highlightText(BuildContext context, String text, String highlightWord) {

final regex = RegExp(highlightWord, caseSensitive: false);
final matches = regex.allMatches(text);

Expand Down

0 comments on commit 5d7c7ab

Please sign in to comment.