diff --git a/lib/ui/views/home/home_viewmodel.dart b/lib/ui/views/home/home_viewmodel.dart index a8416cb0..1f1db588 100644 --- a/lib/ui/views/home/home_viewmodel.dart +++ b/lib/ui/views/home/home_viewmodel.dart @@ -85,7 +85,7 @@ class HomeViewModel extends BaseViewModel { AndroidFlutterLocalNotificationsPlugin>() ?.requestNotificationsPermission(); final bool isConnected = - await Connectivity().checkConnectivity() != ConnectivityResult.none; + await Connectivity().checkConnectivity() != [ConnectivityResult.none]; if (!isConnected) { _toast.showBottom(t.homeView.noConnection); } @@ -106,7 +106,8 @@ class HomeViewModel extends BaseViewModel { void navigateToAppInfo(PatchedApplication app, bool isLastPatchedApp) { _navigationService.navigateTo( Routes.appInfoView, - arguments: AppInfoViewArguments(app: app, isLastPatchedApp: isLastPatchedApp), + arguments: + AppInfoViewArguments(app: app, isLastPatchedApp: isLastPatchedApp), ); }