|
@@ -1,14 +1,14 @@
|
|
-// @dart=2.9
|
|
|
|
-
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';
|
|
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';
|
|
|
|
+import 'package:photos/theme/colors.dart';
|
|
|
|
+import 'package:photos/theme/effects.dart';
|
|
|
|
|
|
final lightThemeData = ThemeData(
|
|
final lightThemeData = ThemeData(
|
|
fontFamily: 'Inter',
|
|
fontFamily: 'Inter',
|
|
brightness: Brightness.light,
|
|
brightness: Brightness.light,
|
|
- hintColor: Colors.grey,
|
|
|
|
- primaryColor: Colors.deepOrangeAccent,
|
|
|
|
- primaryColorLight: Colors.black54,
|
|
|
|
|
|
+ hintColor: const Color.fromRGBO(158, 158, 158, 1),
|
|
|
|
+ primaryColor: const Color.fromRGBO(255, 110, 64, 1),
|
|
|
|
+ primaryColorLight: const Color.fromRGBO(0, 0, 0, 0.541),
|
|
iconTheme: const IconThemeData(color: Colors.black),
|
|
iconTheme: const IconThemeData(color: Colors.black),
|
|
primaryIconTheme:
|
|
primaryIconTheme:
|
|
const IconThemeData(color: Colors.red, opacity: 1.0, size: 50.0),
|
|
const IconThemeData(color: Colors.red, opacity: 1.0, size: 50.0),
|
|
@@ -18,18 +18,18 @@ final lightThemeData = ThemeData(
|
|
),
|
|
),
|
|
accentColor: const Color.fromRGBO(0, 0, 0, 0.6),
|
|
accentColor: const Color.fromRGBO(0, 0, 0, 0.6),
|
|
outlinedButtonTheme: buildOutlinedButtonThemeData(
|
|
outlinedButtonTheme: buildOutlinedButtonThemeData(
|
|
- bgDisabled: Colors.grey.shade500,
|
|
|
|
- bgEnabled: Colors.black,
|
|
|
|
- fgDisabled: Colors.white,
|
|
|
|
- fgEnabled: Colors.white,
|
|
|
|
|
|
+ bgDisabled: const Color.fromRGBO(158, 158, 158, 1),
|
|
|
|
+ bgEnabled: const Color.fromRGBO(0, 0, 0, 1),
|
|
|
|
+ fgDisabled: const Color.fromRGBO(255, 255, 255, 1),
|
|
|
|
+ fgEnabled: const Color.fromRGBO(255, 255, 255, 1),
|
|
),
|
|
),
|
|
elevatedButtonTheme: buildElevatedButtonThemeData(
|
|
elevatedButtonTheme: buildElevatedButtonThemeData(
|
|
- onPrimary: Colors.white,
|
|
|
|
- primary: Colors.black,
|
|
|
|
|
|
+ onPrimary: const Color.fromRGBO(255, 255, 255, 1),
|
|
|
|
+ primary: const Color.fromRGBO(0, 0, 0, 1),
|
|
),
|
|
),
|
|
- toggleableActiveColor: Colors.green[400],
|
|
|
|
- scaffoldBackgroundColor: Colors.white,
|
|
|
|
- backgroundColor: Colors.white,
|
|
|
|
|
|
+ toggleableActiveColor: const Color.fromRGBO(102, 187, 106, 1),
|
|
|
|
+ scaffoldBackgroundColor: const Color.fromRGBO(255, 255, 255, 1),
|
|
|
|
+ backgroundColor: const Color.fromRGBO(255, 255, 255, 1),
|
|
appBarTheme: const AppBarTheme().copyWith(
|
|
appBarTheme: const AppBarTheme().copyWith(
|
|
backgroundColor: Colors.white,
|
|
backgroundColor: Colors.white,
|
|
foregroundColor: Colors.black,
|
|
foregroundColor: Colors.black,
|
|
@@ -37,7 +37,7 @@ final lightThemeData = ThemeData(
|
|
elevation: 0,
|
|
elevation: 0,
|
|
),
|
|
),
|
|
//https://api.flutter.dev/flutter/material/TextTheme-class.html
|
|
//https://api.flutter.dev/flutter/material/TextTheme-class.html
|
|
- textTheme: _buildTextTheme(Colors.black),
|
|
|
|
|
|
+ textTheme: _buildTextTheme(const Color.fromRGBO(0, 0, 0, 1)),
|
|
primaryTextTheme: const TextTheme().copyWith(
|
|
primaryTextTheme: const TextTheme().copyWith(
|
|
bodyText2: const TextStyle(color: Colors.yellow),
|
|
bodyText2: const TextStyle(color: Colors.yellow),
|
|
bodyText1: const TextStyle(color: Colors.orange),
|
|
bodyText1: const TextStyle(color: Colors.orange),
|
|
@@ -72,13 +72,13 @@ final lightThemeData = ThemeData(
|
|
),
|
|
),
|
|
fillColor: MaterialStateProperty.resolveWith((states) {
|
|
fillColor: MaterialStateProperty.resolveWith((states) {
|
|
return states.contains(MaterialState.selected)
|
|
return states.contains(MaterialState.selected)
|
|
- ? Colors.black
|
|
|
|
- : Colors.white;
|
|
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1);
|
|
}),
|
|
}),
|
|
checkColor: MaterialStateProperty.resolveWith((states) {
|
|
checkColor: MaterialStateProperty.resolveWith((states) {
|
|
return states.contains(MaterialState.selected)
|
|
return states.contains(MaterialState.selected)
|
|
- ? Colors.white
|
|
|
|
- : Colors.black;
|
|
|
|
|
|
+ ? const Color.fromRGBO(255, 255, 255, 1)
|
|
|
|
+ : const Color.fromRGBO(0, 0, 0, 1);
|
|
}),
|
|
}),
|
|
),
|
|
),
|
|
);
|
|
);
|
|
@@ -86,30 +86,30 @@ final lightThemeData = ThemeData(
|
|
final darkThemeData = ThemeData(
|
|
final darkThemeData = ThemeData(
|
|
fontFamily: 'Inter',
|
|
fontFamily: 'Inter',
|
|
brightness: Brightness.dark,
|
|
brightness: Brightness.dark,
|
|
- primaryColorLight: Colors.white70,
|
|
|
|
|
|
+ primaryColorLight: const Color.fromRGBO(255, 255, 255, 0.702),
|
|
iconTheme: const IconThemeData(color: Colors.white),
|
|
iconTheme: const IconThemeData(color: Colors.white),
|
|
primaryIconTheme:
|
|
primaryIconTheme:
|
|
const IconThemeData(color: Colors.red, opacity: 1.0, size: 50.0),
|
|
const IconThemeData(color: Colors.red, opacity: 1.0, size: 50.0),
|
|
- hintColor: Colors.grey,
|
|
|
|
|
|
+ hintColor: const Color.fromRGBO(158, 158, 158, 1),
|
|
colorScheme: const ColorScheme.dark(primary: Colors.white),
|
|
colorScheme: const ColorScheme.dark(primary: Colors.white),
|
|
accentColor: const Color.fromRGBO(45, 194, 98, 0.2),
|
|
accentColor: const Color.fromRGBO(45, 194, 98, 0.2),
|
|
buttonTheme: const ButtonThemeData().copyWith(
|
|
buttonTheme: const ButtonThemeData().copyWith(
|
|
buttonColor: const Color.fromRGBO(45, 194, 98, 1.0),
|
|
buttonColor: const Color.fromRGBO(45, 194, 98, 1.0),
|
|
),
|
|
),
|
|
- textTheme: _buildTextTheme(Colors.white),
|
|
|
|
- toggleableActiveColor: Colors.green[400],
|
|
|
|
|
|
+ textTheme: _buildTextTheme(const Color.fromRGBO(255, 255, 255, 1)),
|
|
|
|
+ toggleableActiveColor: const Color.fromRGBO(102, 187, 106, 1),
|
|
outlinedButtonTheme: buildOutlinedButtonThemeData(
|
|
outlinedButtonTheme: buildOutlinedButtonThemeData(
|
|
- bgDisabled: Colors.grey.shade500,
|
|
|
|
- bgEnabled: Colors.white,
|
|
|
|
- fgDisabled: Colors.white,
|
|
|
|
- fgEnabled: Colors.black,
|
|
|
|
|
|
+ bgDisabled: const Color.fromRGBO(158, 158, 158, 1),
|
|
|
|
+ bgEnabled: const Color.fromRGBO(255, 255, 255, 1),
|
|
|
|
+ fgDisabled: const Color.fromRGBO(255, 255, 255, 1),
|
|
|
|
+ fgEnabled: const Color.fromRGBO(0, 0, 0, 1),
|
|
),
|
|
),
|
|
elevatedButtonTheme: buildElevatedButtonThemeData(
|
|
elevatedButtonTheme: buildElevatedButtonThemeData(
|
|
- onPrimary: Colors.black,
|
|
|
|
- primary: Colors.white,
|
|
|
|
|
|
+ onPrimary: const Color.fromRGBO(0, 0, 0, 1),
|
|
|
|
+ primary: const Color.fromRGBO(255, 255, 255, 1),
|
|
),
|
|
),
|
|
- scaffoldBackgroundColor: Colors.black,
|
|
|
|
- backgroundColor: Colors.black,
|
|
|
|
|
|
+ scaffoldBackgroundColor: const Color.fromRGBO(0, 0, 0, 1),
|
|
|
|
+ backgroundColor: const Color.fromRGBO(0, 0, 0, 1),
|
|
appBarTheme: const AppBarTheme().copyWith(
|
|
appBarTheme: const AppBarTheme().copyWith(
|
|
color: Colors.black,
|
|
color: Colors.black,
|
|
elevation: 0,
|
|
elevation: 0,
|
|
@@ -144,16 +144,16 @@ final darkThemeData = ThemeData(
|
|
),
|
|
),
|
|
fillColor: MaterialStateProperty.resolveWith((states) {
|
|
fillColor: MaterialStateProperty.resolveWith((states) {
|
|
if (states.contains(MaterialState.selected)) {
|
|
if (states.contains(MaterialState.selected)) {
|
|
- return Colors.grey;
|
|
|
|
|
|
+ return const Color.fromRGBO(158, 158, 158, 1);
|
|
} else {
|
|
} else {
|
|
- return Colors.black;
|
|
|
|
|
|
+ return const Color.fromRGBO(0, 0, 0, 1);
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
checkColor: MaterialStateProperty.resolveWith((states) {
|
|
checkColor: MaterialStateProperty.resolveWith((states) {
|
|
if (states.contains(MaterialState.selected)) {
|
|
if (states.contains(MaterialState.selected)) {
|
|
- return Colors.black;
|
|
|
|
|
|
+ return const Color.fromRGBO(0, 0, 0, 1);
|
|
} else {
|
|
} else {
|
|
- return Colors.grey;
|
|
|
|
|
|
+ return const Color.fromRGBO(158, 158, 158, 1);
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
),
|
|
),
|
|
@@ -219,20 +219,25 @@ TextTheme _buildTextTheme(Color textColor) {
|
|
}
|
|
}
|
|
|
|
|
|
extension CustomColorScheme on ColorScheme {
|
|
extension CustomColorScheme on ColorScheme {
|
|
- Color get defaultBackgroundColor =>
|
|
|
|
- brightness == Brightness.light ? Colors.white : Colors.black;
|
|
|
|
|
|
+ Color get defaultBackgroundColor => brightness == Brightness.light
|
|
|
|
+ ? const Color.fromRGBO(255, 255, 255, 1)
|
|
|
|
+ : const Color.fromRGBO(0, 0, 0, 1);
|
|
|
|
|
|
- Color get defaultTextColor =>
|
|
|
|
- brightness == Brightness.light ? Colors.black : Colors.white;
|
|
|
|
|
|
+ Color get defaultTextColor => brightness == Brightness.light
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1);
|
|
|
|
|
|
- Color get inverseTextColor =>
|
|
|
|
- brightness == Brightness.light ? Colors.white : Colors.black;
|
|
|
|
|
|
+ Color get inverseTextColor => brightness == Brightness.light
|
|
|
|
+ ? const Color.fromRGBO(255, 255, 255, 1)
|
|
|
|
+ : const Color.fromRGBO(0, 0, 0, 1);
|
|
|
|
|
|
- Color get inverseIconColor =>
|
|
|
|
- brightness == Brightness.light ? Colors.white : Colors.black;
|
|
|
|
|
|
+ Color get inverseIconColor => brightness == Brightness.light
|
|
|
|
+ ? const Color.fromRGBO(255, 255, 255, 1)
|
|
|
|
+ : const Color.fromRGBO(0, 0, 0, 1);
|
|
|
|
|
|
- Color get inverseBackgroundColor =>
|
|
|
|
- brightness == Brightness.light ? Colors.black : Colors.white;
|
|
|
|
|
|
+ Color get inverseBackgroundColor => brightness == Brightness.light
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1);
|
|
|
|
|
|
Color get boxSelectColor => brightness == Brightness.light
|
|
Color get boxSelectColor => brightness == Brightness.light
|
|
? const Color.fromRGBO(67, 186, 108, 1)
|
|
? const Color.fromRGBO(67, 186, 108, 1)
|
|
@@ -244,13 +249,15 @@ extension CustomColorScheme on ColorScheme {
|
|
|
|
|
|
Color get greenAlternative => const Color.fromRGBO(45, 194, 98, 1.0);
|
|
Color get greenAlternative => const Color.fromRGBO(45, 194, 98, 1.0);
|
|
|
|
|
|
- Color get dynamicFABBackgroundColor =>
|
|
|
|
- brightness == Brightness.light ? Colors.black : Colors.grey[850];
|
|
|
|
|
|
+ Color get dynamicFABBackgroundColor => brightness == Brightness.light
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1)
|
|
|
|
+ : const Color.fromRGBO(48, 48, 48, 1);
|
|
|
|
|
|
- Color get dynamicFABTextColor => Colors.white; //same for both themes
|
|
|
|
|
|
+ Color get dynamicFABTextColor =>
|
|
|
|
+ const Color.fromRGBO(255, 255, 255, 1); //same for both themes
|
|
|
|
|
|
// todo: use brightness == Brightness.light for changing color for dark/light theme
|
|
// todo: use brightness == Brightness.light for changing color for dark/light theme
|
|
- ButtonStyle get optionalActionButtonStyle => buildElevatedButtonThemeData(
|
|
|
|
|
|
+ ButtonStyle? get optionalActionButtonStyle => buildElevatedButtonThemeData(
|
|
onPrimary: const Color(0xFF777777),
|
|
onPrimary: const Color(0xFF777777),
|
|
primary: const Color(0xFFF0F0F0),
|
|
primary: const Color(0xFFF0F0F0),
|
|
elevation: 0,
|
|
elevation: 0,
|
|
@@ -265,18 +272,18 @@ extension CustomColorScheme on ColorScheme {
|
|
: const Color.fromRGBO(48, 48, 48, 0.5);
|
|
: const Color.fromRGBO(48, 48, 48, 0.5);
|
|
|
|
|
|
Color get iconColor => brightness == Brightness.light
|
|
Color get iconColor => brightness == Brightness.light
|
|
- ? Colors.black.withOpacity(0.75)
|
|
|
|
- : Colors.white;
|
|
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1).withOpacity(0.75)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1);
|
|
|
|
|
|
Color get bgColorForQuestions => brightness == Brightness.light
|
|
Color get bgColorForQuestions => brightness == Brightness.light
|
|
- ? Colors.white
|
|
|
|
|
|
+ ? const Color.fromRGBO(255, 255, 255, 1)
|
|
: const Color.fromRGBO(10, 15, 15, 1.0);
|
|
: const Color.fromRGBO(10, 15, 15, 1.0);
|
|
|
|
|
|
Color get greenText => const Color.fromARGB(255, 40, 190, 113);
|
|
Color get greenText => const Color.fromARGB(255, 40, 190, 113);
|
|
|
|
|
|
Color get cupertinoPickerTopColor => brightness == Brightness.light
|
|
Color get cupertinoPickerTopColor => brightness == Brightness.light
|
|
? const Color.fromARGB(255, 238, 238, 238)
|
|
? const Color.fromARGB(255, 238, 238, 238)
|
|
- : Colors.white.withOpacity(0.1);
|
|
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1).withOpacity(0.1);
|
|
|
|
|
|
DatePickerTheme get dateTimePickertheme => brightness == Brightness.light
|
|
DatePickerTheme get dateTimePickertheme => brightness == Brightness.light
|
|
? const DatePickerTheme(
|
|
? const DatePickerTheme(
|
|
@@ -315,23 +322,24 @@ extension CustomColorScheme on ColorScheme {
|
|
: const Color.fromRGBO(20, 20, 20, 1);
|
|
: const Color.fromRGBO(20, 20, 20, 1);
|
|
|
|
|
|
Color get galleryThumbDrawColor => brightness == Brightness.light
|
|
Color get galleryThumbDrawColor => brightness == Brightness.light
|
|
- ? Colors.black.withOpacity(0.8)
|
|
|
|
- : Colors.white.withOpacity(0.5);
|
|
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1).withOpacity(0.8)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1).withOpacity(0.5);
|
|
|
|
|
|
Color get backupEnabledBgColor => brightness == Brightness.light
|
|
Color get backupEnabledBgColor => brightness == Brightness.light
|
|
? const Color.fromRGBO(230, 230, 230, 0.95)
|
|
? const Color.fromRGBO(230, 230, 230, 0.95)
|
|
: const Color.fromRGBO(10, 40, 40, 0.3);
|
|
: const Color.fromRGBO(10, 40, 40, 0.3);
|
|
|
|
|
|
Color get dotsIndicatorActiveColor => brightness == Brightness.light
|
|
Color get dotsIndicatorActiveColor => brightness == Brightness.light
|
|
- ? Colors.black.withOpacity(0.5)
|
|
|
|
- : Colors.white.withOpacity(0.5);
|
|
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1).withOpacity(0.5)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1).withOpacity(0.5);
|
|
|
|
|
|
Color get dotsIndicatorInactiveColor => brightness == Brightness.light
|
|
Color get dotsIndicatorInactiveColor => brightness == Brightness.light
|
|
- ? Colors.black.withOpacity(0.12)
|
|
|
|
- : Colors.white.withOpacity(0.12);
|
|
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1).withOpacity(0.12)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1).withOpacity(0.12);
|
|
|
|
|
|
- Color get toastTextColor =>
|
|
|
|
- brightness == Brightness.light ? Colors.white : Colors.black;
|
|
|
|
|
|
+ Color get toastTextColor => brightness == Brightness.light
|
|
|
|
+ ? const Color.fromRGBO(255, 255, 255, 1)
|
|
|
|
+ : const Color.fromRGBO(0, 0, 0, 1);
|
|
|
|
|
|
Color get toastBackgroundColor => brightness == Brightness.light
|
|
Color get toastBackgroundColor => brightness == Brightness.light
|
|
? const Color.fromRGBO(24, 24, 24, 0.95)
|
|
? const Color.fromRGBO(24, 24, 24, 0.95)
|
|
@@ -342,15 +350,16 @@ extension CustomColorScheme on ColorScheme {
|
|
: const Color.fromRGBO(100, 100, 100, 1);
|
|
: const Color.fromRGBO(100, 100, 100, 1);
|
|
|
|
|
|
Color get themeSwitchIndicatorColor => brightness == Brightness.light
|
|
Color get themeSwitchIndicatorColor => brightness == Brightness.light
|
|
- ? Colors.black.withOpacity(0.75)
|
|
|
|
- : Colors.white;
|
|
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1).withOpacity(0.75)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1);
|
|
|
|
|
|
- Color get themeSwitchActiveIconColor =>
|
|
|
|
- brightness == Brightness.light ? Colors.white : Colors.black;
|
|
|
|
|
|
+ Color get themeSwitchActiveIconColor => brightness == Brightness.light
|
|
|
|
+ ? const Color.fromRGBO(255, 255, 255, 1)
|
|
|
|
+ : const Color.fromRGBO(0, 0, 0, 1);
|
|
|
|
|
|
Color get themeSwitchInactiveIconColor => brightness == Brightness.light
|
|
Color get themeSwitchInactiveIconColor => brightness == Brightness.light
|
|
- ? Colors.black.withOpacity(0.5)
|
|
|
|
- : Colors.white.withOpacity(0.5);
|
|
|
|
|
|
+ ? const Color.fromRGBO(0, 0, 0, 1).withOpacity(0.5)
|
|
|
|
+ : const Color.fromRGBO(255, 255, 255, 1).withOpacity(0.5);
|
|
|
|
|
|
Color get searchResultsColor => brightness == Brightness.light
|
|
Color get searchResultsColor => brightness == Brightness.light
|
|
? const Color.fromRGBO(245, 245, 245, 1.0)
|
|
? const Color.fromRGBO(245, 245, 245, 1.0)
|
|
@@ -364,35 +373,18 @@ extension CustomColorScheme on ColorScheme {
|
|
? Colors.black.withOpacity(0.32)
|
|
? Colors.black.withOpacity(0.32)
|
|
: Colors.black.withOpacity(0.64);
|
|
: Colors.black.withOpacity(0.64);
|
|
|
|
|
|
- Color get fillFaint => brightness == Brightness.light
|
|
|
|
- ? Colors.white.withOpacity(0.04)
|
|
|
|
- : Colors.black.withOpacity(0.12);
|
|
|
|
- Color get warning500 => const Color.fromRGBO(255, 101, 101, 1);
|
|
|
|
-
|
|
|
|
- List<BoxShadow> get shadowMenu => brightness == Brightness.light
|
|
|
|
- ? [
|
|
|
|
- BoxShadow(blurRadius: 6, color: Colors.white.withOpacity(0.16)),
|
|
|
|
- BoxShadow(
|
|
|
|
- blurRadius: 6,
|
|
|
|
- color: Colors.white.withOpacity(0.12),
|
|
|
|
- offset: const Offset(0, 3),
|
|
|
|
- ),
|
|
|
|
- ]
|
|
|
|
- : [
|
|
|
|
- BoxShadow(blurRadius: 6, color: Colors.black.withOpacity(0.50)),
|
|
|
|
- BoxShadow(
|
|
|
|
- blurRadius: 6,
|
|
|
|
- color: Colors.black.withOpacity(0.25),
|
|
|
|
- offset: const Offset(0, 3),
|
|
|
|
- ),
|
|
|
|
- ];
|
|
|
|
|
|
+ Color get fillFaint =>
|
|
|
|
+ brightness == Brightness.light ? fillFaintLight : fillFaintDark;
|
|
|
|
+
|
|
|
|
+ List<BoxShadow> get shadowMenu =>
|
|
|
|
+ brightness == Brightness.light ? shadowMenuLight : shadowMenuDark;
|
|
}
|
|
}
|
|
|
|
|
|
OutlinedButtonThemeData buildOutlinedButtonThemeData({
|
|
OutlinedButtonThemeData buildOutlinedButtonThemeData({
|
|
- Color bgDisabled,
|
|
|
|
- Color bgEnabled,
|
|
|
|
- Color fgDisabled,
|
|
|
|
- Color fgEnabled,
|
|
|
|
|
|
+ required Color bgDisabled,
|
|
|
|
+ required Color bgEnabled,
|
|
|
|
+ required Color fgDisabled,
|
|
|
|
+ required Color fgEnabled,
|
|
}) {
|
|
}) {
|
|
return OutlinedButtonThemeData(
|
|
return OutlinedButtonThemeData(
|
|
style: OutlinedButton.styleFrom(
|
|
style: OutlinedButton.styleFrom(
|
|
@@ -429,8 +421,8 @@ OutlinedButtonThemeData buildOutlinedButtonThemeData({
|
|
}
|
|
}
|
|
|
|
|
|
ElevatedButtonThemeData buildElevatedButtonThemeData({
|
|
ElevatedButtonThemeData buildElevatedButtonThemeData({
|
|
- @required Color onPrimary, // text button color
|
|
|
|
- @required Color primary,
|
|
|
|
|
|
+ required Color onPrimary, // text button color
|
|
|
|
+ required Color primary,
|
|
double elevation = 2, // background color of button
|
|
double elevation = 2, // background color of button
|
|
}) {
|
|
}) {
|
|
return ElevatedButtonThemeData(
|
|
return ElevatedButtonThemeData(
|