diff --git a/lib/main_app.dart b/lib/main_app.dart index f7345a631..8f8633a2f 100644 --- a/lib/main_app.dart +++ b/lib/main_app.dart @@ -286,6 +286,7 @@ class InvoiceNinjaAppState extends State { ? ThemeData( colorScheme: ColorScheme.dark().copyWith( secondary: accentColor, + primary: accentColor, ), pageTransitionsTheme: pageTransitionsTheme, indicatorColor: accentColor, diff --git a/lib/ui/app/buttons/elevated_button.dart b/lib/ui/app/buttons/elevated_button.dart index 87f63becf..597223b9f 100644 --- a/lib/ui/app/buttons/elevated_button.dart +++ b/lib/ui/app/buttons/elevated_button.dart @@ -24,22 +24,32 @@ class AppButton extends StatelessWidget { Widget build(BuildContext context) { final button = ElevatedButton( style: ElevatedButton.styleFrom( - primary: color ?? Theme.of(context).colorScheme.secondary, - padding: EdgeInsets.symmetric(vertical: 14, horizontal: 14), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(kBorderRadius)), - elevation: 4, - textStyle: TextStyle( - color: Colors.white, - )), + primary: color ?? Theme.of(context).colorScheme.secondary, + padding: EdgeInsets.symmetric(vertical: 14, horizontal: 14), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(kBorderRadius)), + elevation: 4, + textStyle: TextStyle( + color: Colors.white, + ), + ), child: iconData != null ? IconText( icon: iconData, text: label, alignment: MainAxisAlignment.center, + style: TextStyle( + color: Colors.white, + ), ) : SizedBox( - child: Text(label, overflow: TextOverflow.ellipsis), + child: Text( + label, + overflow: TextOverflow.ellipsis, + style: TextStyle( + color: Colors.white, + ), + ), height: 24, ), onPressed: onPressed,