Clean up Flutter warnings
This commit is contained in:
parent
ee0e608763
commit
76fa354b25
|
|
@ -308,7 +308,7 @@ class InvoiceNinjaAppState extends State<InvoiceNinjaApp> {
|
|||
);
|
||||
|
||||
final outlinedButtonTheme = OutlinedButton.styleFrom(
|
||||
primary:
|
||||
foregroundColor:
|
||||
state.prefState.enableDarkMode ? Colors.white : Colors.black87,
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class AppTextButton extends StatelessWidget {
|
|||
}
|
||||
|
||||
final ButtonStyle flatButtonStyle =
|
||||
TextButton.styleFrom(primary: primaryColor);
|
||||
TextButton.styleFrom(foregroundColor: primaryColor);
|
||||
|
||||
return TextButton(
|
||||
style: flatButtonStyle,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class AppButton extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
final button = ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: color ?? Theme.of(context).colorScheme.secondary,
|
||||
foregroundColor: color ?? Theme.of(context).colorScheme.secondary,
|
||||
padding: EdgeInsets.symmetric(vertical: 14, horizontal: 14),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(kBorderRadius)),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
// Dart imports:
|
||||
import 'dart:convert';
|
||||
import 'dart:typed_data';
|
||||
import 'dart:ui';
|
||||
|
||||
// Flutter imports:
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import 'package:redux/redux.dart';
|
|||
// Project imports:
|
||||
import 'package:invoiceninja_flutter/redux/app/app_state.dart';
|
||||
import 'package:invoiceninja_flutter/ui/settings/settings_screen.dart';
|
||||
import 'settings_screen.dart';
|
||||
|
||||
class SettingsScreenBuilder extends StatelessWidget {
|
||||
const SettingsScreenBuilder({Key key}) : super(key: key);
|
||||
|
|
|
|||
Loading…
Reference in New Issue