We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a042e5 commit 47dc6d0Copy full SHA for 47dc6d0
packages/flutterfire_ui/lib/src/auth/widgets/internal/loading_button.dart
@@ -56,15 +56,19 @@ class LoadingButton extends StatelessWidget {
56
);
57
}
58
59
- return CupertinoTheme(
60
- data: CupertinoTheme.of(context).copyWith(
61
- primaryColor: color ?? CupertinoColors.activeBlue,
62
- ),
63
- child: CupertinoButton.filled(
64
- onPressed: onTap,
65
- child: child,
66
+ final button = CupertinoButton.filled(
+ onPressed: onTap,
+ child: child,
67
+
+ return color != null
+ ? CupertinoTheme(
+ data: CupertinoTheme.of(context).copyWith(
+ primaryColor: color,
68
+ ),
69
+ child: button,
70
+ )
71
+ : button;
72
73
74
if (icon != null) {
0 commit comments