Skip to content

Commit be73078

Browse files
chore: Migrated deprectations after flutter upgrade (#148)
1 parent f3ae5d3 commit be73078

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/presentation/resources/app_theme.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ sealed class AppTheme {
1313
brightness: brightness,
1414
primary: _appColors.primary,
1515
onPrimary: _appColors.foregroundOnPrimary,
16-
background: _appColors.primary,
16+
surface: _appColors.primary,
1717
secondary: _appColors.secondary,
1818
onSecondary: _appColors.foregroundOnSecondary,
19-
onBackground: _appColors.foregroundOnBackground,
19+
onSurface: _appColors.foregroundOnBackground,
2020
outline: _appColors.outline,
2121
error: _appColors.danger,
2222
onError: _appColors.foregroundOnDanger,
@@ -28,8 +28,8 @@ sealed class AppTheme {
2828
onPrimary: _appColors.foregroundOnPrimary,
2929
secondary: _appColors.secondary,
3030
onSecondary: _appColors.foregroundOnSecondary,
31-
background: _appColors.background,
32-
onBackground: _appColors.foregroundOnBackground,
31+
surface: _appColors.background,
32+
onSurface: _appColors.foregroundOnBackground,
3333
outline: _appColors.outline,
3434
error: _appColors.danger,
3535
onError: _appColors.foregroundOnDanger,

lib/presentation/widgets/button/app_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class AppButton extends StatelessWidget {
132132

133133
final shape = borderRadius == null
134134
? null
135-
: MaterialStateProperty.all<RoundedRectangleBorder>(
135+
: WidgetStateProperty.all<RoundedRectangleBorder>(
136136
RoundedRectangleBorder(
137137
borderRadius: BorderRadius.circular(
138138
AppUiConstants.defaultBorderRadius ?? .0,

0 commit comments

Comments
 (0)