Skip to content

Commit

Permalink
build: update flutter version
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed Nov 19, 2023
1 parent 6c1e49b commit e766d71
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.13.6",
"flutterSdkVersion": "3.16.0",
"flavors": {}
}
2 changes: 1 addition & 1 deletion lib/ui/widgets/components/buttons/icon_primary_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class IconPrimaryButton extends StatelessWidget {
style: ElevatedButton.styleFrom(
padding: EdgeInsets.symmetric(
horizontal: isBigButton ? Spacing.sp24 : Spacing.sp12,
vertical: isBigButton ? Spacing.sp16 : Spacing.sp8,
vertical: isBigButton ? Spacing.sp12 : Spacing.sp8,
),
),
child: SvgIcon(
Expand Down
16 changes: 8 additions & 8 deletions lib/ui/widgets/components/error_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ class ErrorCard extends StatelessWidget {
extension ErrorMessage on MainError {
String get message {
switch (runtimeType) {
case NoInternet:
case NoInternet _:
return 'errors.no_internet'.tr();
case ServerError:
case ServerError _:
return 'errors.server'.tr();
case BadRequestError:
case BadRequestError _:
return 'errors.bad_request'.tr();
case ForbiddenError:
case ForbiddenError _:
return 'errors.forbidden'.tr();
case NotFoundError:
case NotFoundError _:
return 'errors.not_found'.tr();
case UnauthError:
case UnauthError _:
return 'errors.unauthorized'.tr();
case ExpiredSessionError:
case ExpiredSessionError _:
return 'errors.expired_session'.tr();
case UnknownError:
case UnknownError _:
default:
return 'errors.unknown'.tr();
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.4.6
flutter_lints: ^2.0.3
flutter_lints: ^3.0.1
flutter_test:
sdk: flutter
injectable_generator: ^2.4.1
Expand Down

0 comments on commit e766d71

Please sign in to comment.