|
1 | 1 | import 'package:bb_mobile/core/themes/app_theme.dart'; |
| 2 | +import 'package:bb_mobile/core/utils/build_context_x.dart'; |
2 | 3 | import 'package:bb_mobile/core/widgets/dialog/blurred_dialog.dart'; |
3 | 4 | import 'package:bb_mobile/core/widgets/loading/loading_line_content.dart'; |
4 | 5 | import 'package:bb_mobile/core/widgets/snackbar_utils.dart'; |
@@ -101,7 +102,7 @@ class CopyInput extends StatelessWidget { |
101 | 102 | } |
102 | 103 |
|
103 | 104 | void _onShowValueModal(BuildContext context, {required bool canCopy}) { |
104 | | - final theme = context.theme; |
| 105 | + final theme = Theme.of(context); |
105 | 106 | BlurredDialog.show( |
106 | 107 | context: context, |
107 | 108 | builder: (dialogContext) => AlertDialog( |
@@ -136,15 +137,21 @@ class CopyInput extends StatelessWidget { |
136 | 137 | ClipboardData(text: clipboardText ?? text), |
137 | 138 | ); |
138 | 139 | }, |
139 | | - child: Text('Copy', style: theme.textTheme.bodyLarge), |
| 140 | + child: Text( |
| 141 | + context.loc.copyDialogButton, |
| 142 | + style: theme.textTheme.bodyLarge, |
| 143 | + ), |
140 | 144 | ), |
141 | 145 | TextButton( |
142 | 146 | style: TextButton.styleFrom( |
143 | 147 | foregroundColor: context.appColors.primary, |
144 | 148 | textStyle: theme.textTheme.bodyLarge, |
145 | 149 | ), |
146 | 150 | onPressed: () => Navigator.of(dialogContext).pop(), |
147 | | - child: Text('Close', style: theme.textTheme.bodyLarge), |
| 151 | + child: Text( |
| 152 | + context.loc.closeDialogButton, |
| 153 | + style: theme.textTheme.bodyLarge, |
| 154 | + ), |
148 | 155 | ), |
149 | 156 | ], |
150 | 157 | ), |
|
0 commit comments