Skip to content

Commit 49b1aa4

Browse files
committed
Fix button label
1 parent d8a3cff commit 49b1aa4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

example/lib/pages/text_input_dialog_page.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class TextInputDialogPage extends StatelessWidget {
1010

1111
@override
1212
Widget build(BuildContext context) {
13+
final theme = Theme.of(context);
1314
return Scaffold(
1415
appBar: AppBar(
1516
title: Text(pascalCaseFromRouteName(routeName)),
@@ -87,7 +88,9 @@ class TextInputDialogPage extends StatelessWidget {
8788
hintText: 'Start with "F"',
8889
retryTitle: 'Incorrect',
8990
retryMessage: 'Retry?',
90-
retryOkLabel: 'Retry',
91+
retryOkLabel: AdaptiveStyle.adaptive.isCupertinoStyle(theme)
92+
? 'Retry'
93+
: 'RETRY',
9194
);
9295
print('ok: $ok');
9396
if (!ok) {

0 commit comments

Comments
 (0)