Skip to content

Commit

Permalink
Replace deprecated arguments with replacements (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-ancell committed Aug 31, 2022
1 parent 0346af4 commit ad45758
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/src/themes/common_themes.dart
Expand Up @@ -70,7 +70,7 @@ final _outlinedButtonThemeData = OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
side: const BorderSide(color: Colors.black38, width: 0.3),
visualDensity: _commonButtonStyle.visualDensity,
primary: YaruColors.textGrey,
foregroundColor: YaruColors.textGrey,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(kButtonRadius),
),
Expand All @@ -84,7 +84,7 @@ final _darkOutlinedButtonThemeData = OutlinedButtonThemeData(
borderRadius: BorderRadius.circular(kButtonRadius),
),
visualDensity: _commonButtonStyle.visualDensity,
primary: Colors.white,
foregroundColor: Colors.white,
),
);

Expand All @@ -100,10 +100,11 @@ final _textButtonThemeData = TextButtonThemeData(
ElevatedButtonThemeData _getElevatedButtonThemeData(Color color) {
return ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
primary: color,
onPrimary: ThemeData.estimateBrightnessForColor(color) == Brightness.light
? Colors.black
: Colors.white,
backgroundColor: color,
foregroundColor:
ThemeData.estimateBrightnessForColor(color) == Brightness.light
? Colors.black
: Colors.white,
visualDensity: _commonButtonStyle.visualDensity,
elevation: 0,
shape: RoundedRectangleBorder(
Expand Down

0 comments on commit ad45758

Please sign in to comment.