Skip to content

Commit 2943b53

Browse files
committed
chore: Used newWidgetStateProperty and surface prop
2 parents 12c0434 + f42bd7f commit 2943b53

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.vscode/extensions.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"recommendations": [
3+
"dart-code.dart-code",
4+
"dart-code.flutter",
5+
"usernamehw.errorlens",
6+
"felixangelov.mason",
7+
"felixangelov.bloc",
8+
"nivisi.dart-build-runner-tools",
9+
"tenraneko.pubspec-dependency-opener",
10+
"jeroen-meijer.pubspec-assist",
11+
"davidanson.vscode-markdownlint"
12+
]
13+
}

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)