Skip to content

Commit

Permalink
Workaround for the webview problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Jun 20, 2021
1 parent 4e5aa20 commit da660e8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions lib/presentation/daily_check_in/daily_check_in_page.dart
Expand Up @@ -76,6 +76,7 @@ class _DailyCheckInPageState extends State<DailyCheckInPage> {
appBar: AppBar(title: Text(s.dailyCheckIn)),
url: state.dailyCheckInUrl,
hidden: true,
initialChild: const Loading(useScaffold: false),
);
}
return PageMessage(text: s.noInternetConnection);
Expand Down
5 changes: 2 additions & 3 deletions lib/presentation/map/map_page.dart
Expand Up @@ -90,9 +90,8 @@ class _MapPageState extends State<MapPage> {
userAgent: state.userAgent,
ignoreSSLErrors: true,
appCacheEnabled: true,
initialChild: const Center(
child: CircularProgressIndicator(),
),
hidden: true,
initialChild: const Loading(useScaffold: false),
);
}
return PageMessage(text: s.noInternetConnection);
Expand Down
1 change: 1 addition & 0 deletions lib/presentation/wish_simulator/wish_simulator_page.dart
Expand Up @@ -80,6 +80,7 @@ class _WishSimulatorPageState extends State<WishSimulatorPage> {
hidden: true,
clearCache: true,
clearCookies: true,
initialChild: const Loading(useScaffold: false),
);
}
return PageMessage(text: s.noInternetConnection);
Expand Down
8 changes: 5 additions & 3 deletions pubspec.lock
Expand Up @@ -367,9 +367,11 @@ packages:
flutter_webview_plugin:
dependency: "direct main"
description:
name: flutter_webview_plugin
url: "https://pub.dartlang.org"
source: hosted
path: "."
ref: "fix/webview-state-changed"
resolved-ref: f8e63c3771f17b4e2287e1a2121e0a0eb5e0f12d
url: "git://github.com/micaelcid/flutter_webview_plugin.git"
source: git
version: "0.4.0"
fluttertoast:
dependency: "direct main"
Expand Down
5 changes: 4 additions & 1 deletion pubspec.yaml
Expand Up @@ -36,7 +36,10 @@ dependencies:
flutter_slidable: ^0.6.0
flutter_staggered_grid_view: ^0.4.0
flutter_user_agentx: ^1.2.4
flutter_webview_plugin: ^0.4.0
flutter_webview_plugin:
git:
url: git://github.com/micaelcid/flutter_webview_plugin.git
ref: fix/webview-state-changed
fluttertoast: 8.0.3
freezed_annotation: ^0.14.2
get_it: ^7.1.3
Expand Down

0 comments on commit da660e8

Please sign in to comment.