Skip to content

Commit

Permalink
Merge pull request #19 from AhmedLSayed9/enhance/update_flutter_sdk
Browse files Browse the repository at this point in the history
Update flutter sdk and do migrations
  • Loading branch information
AhmedLSayed9 authored Oct 18, 2024
2 parents de8454b + 5115667 commit 26a9a6d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
uses: actions/checkout@v3

- name: Setup Flutter environment
uses: subosito/flutter-action@v2.10.0
uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.0"
channel: stable
flutter-version-file: pubspec.yaml # path to pubspec.yaml

- name: Setup Firebase
shell: bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class AppTheme {
surfaceTintColor: Colors.transparent,
shadowColor: _appColors.navBarColor,
indicatorColor: _appColors.navBarIndicatorColor,
labelTextStyle: MaterialStatePropertyAll(
labelTextStyle: WidgetStatePropertyAll(
TextStyles.navigationLabel(_appColors.customColors.font12Color!),
),
elevation: Sizes.navBarElevation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class NoInternetErrorComponent extends StatelessWidget {
await networkInfo.hasInternetConnection.then(
(value) {
if (value) {
const SplashRoute().go(context);
if (context.mounted) const SplashRoute().go(context);
}
},
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class NoInternetScreen extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
return PopScope(
canPop: false,
onPopInvoked: (_) => const SplashRoute().go(context),
onPopInvokedWithResult: (_, __) => const SplashRoute().go(context),
child: WindowClassLayout(
compact: (_) => OrientationLayout(
portrait: (_) => const NoInternetScreenCompact(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RouteErrorScreen extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
return PopScope(
canPop: false,
onPopInvoked: (_) => const SplashRoute().go(context),
onPopInvokedWithResult: (_, __) => const SplashRoute().go(context),
child: WindowClassLayout(
compact: (_) => OrientationLayout(
portrait: (_) => const ErrorScreenCompact(),
Expand Down
2 changes: 1 addition & 1 deletion lib/features/home/domain/order.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AppOrder with _$AppOrder {
//Use custom equality implementation to ignore deliveryGeoPoint value
//this helps [upcomingOrdersProvider] to ignore deliveryGeoPoint in deep equality of distinct method
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_AppOrder &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class HomeShellScreen extends HookConsumerWidget {

return PopScope(
canPop: TabItem.values[navigationShell.currentIndex] == TabItem.home,
onPopInvoked: (canPop) {
onPopInvokedWithResult: (canPop, __) {
//This prevent popping when tab isn't (Home) & instead will back to home.
if (canPop) {
navigationShell.goBranch(TabItem.home.index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AppSettingsSectionComponent extends ConsumerWidget {
final changeTheme = value ? AppThemeMode.light : AppThemeMode.dark;
ref.read(appThemeControllerProvider.notifier).changeTheme(changeTheme);
},
thumbColor: MaterialStatePropertyAll(customColors(context).whiteColor),
thumbColor: WidgetStatePropertyAll(customColors(context).whiteColor),
activeColor: AppStaticColors.lightOrange,
activeTrackColor: AppStaticColors.lightOrange,
),
Expand Down

0 comments on commit 26a9a6d

Please sign in to comment.