add debugPrint in fastPassPage
This commit is contained in:
parent
6802c84317
commit
3e3bf0724c
File diff suppressed because one or more lines are too long
|
@ -59,26 +59,32 @@ class _FastPassPageWidgetState extends State<FastPassPageWidget> {
|
|||
NavigationDelegate(
|
||||
onProgress: (int progress) {},
|
||||
onPageStarted: (String url) {
|
||||
// log().info('Page started: $url');
|
||||
debugPrint('Page started: $url');
|
||||
final String token =
|
||||
"localStorage.setItem('fre-token', '\"${widget.freToken}\"');";
|
||||
// log().info(token);
|
||||
|
||||
_controller.runJavaScript(token);
|
||||
_controller
|
||||
.runJavaScript('console.log("fre-token: $token");');
|
||||
|
||||
final String data =
|
||||
"localStorage.setItem('fre-user-data', '${widget.freUserData}');";
|
||||
// log().info(data);
|
||||
|
||||
_controller.runJavaScript(data);
|
||||
// final String command = 'Object.entries(localStorage).forEach(([ key, value ]) => console.log(key+" => "+value) );';
|
||||
// _controller.runJavaScript(command);
|
||||
_controller
|
||||
.runJavaScript('console.log("fre-user-data: $data");');
|
||||
final String command =
|
||||
'Object.entries(localStorage).forEach(([ key, value ]) => console.log(key+" => "+value) );';
|
||||
_controller.runJavaScript(command);
|
||||
},
|
||||
onPageFinished: (String url) {
|
||||
// log().info('Page finished: $url');
|
||||
debugPrint('Page finished: $url');
|
||||
},
|
||||
onWebResourceError: (WebResourceError error) {
|
||||
// log().error('${error.description}');
|
||||
debugPrint('Error: ${error.description}');
|
||||
},
|
||||
onNavigationRequest: (NavigationRequest request) {
|
||||
// log().info('Request: ${request.url}');
|
||||
debugPrint('Request: ${request.url}');
|
||||
if (request.url.startsWith('http') ||
|
||||
request.url.startsWith('https://api.whatsapp.com/send') ||
|
||||
request.url.startsWith('https://wa.me')) {
|
||||
|
|
56
pubspec.lock
56
pubspec.lock
|
@ -374,6 +374,62 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.3.2"
|
||||
flutter_inappwebview:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_inappwebview
|
||||
sha256: "3e9a443a18ecef966fb930c3a76ca5ab6a7aafc0c7b5e14a4a850cf107b09959"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.0.0"
|
||||
flutter_inappwebview_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: flutter_inappwebview_android
|
||||
sha256: d247f6ed417f1f8c364612fa05a2ecba7f775c8d0c044c1d3b9ee33a6515c421
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.13"
|
||||
flutter_inappwebview_internal_annotations:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: flutter_inappwebview_internal_annotations
|
||||
sha256: "5f80fd30e208ddded7dbbcd0d569e7995f9f63d45ea3f548d8dd4c0b473fb4c8"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.1.1"
|
||||
flutter_inappwebview_ios:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: flutter_inappwebview_ios
|
||||
sha256: f363577208b97b10b319cd0c428555cd8493e88b468019a8c5635a0e4312bd0f
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.13"
|
||||
flutter_inappwebview_macos:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: flutter_inappwebview_macos
|
||||
sha256: b55b9e506c549ce88e26580351d2c71d54f4825901666bd6cfa4be9415bb2636
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.11"
|
||||
flutter_inappwebview_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: flutter_inappwebview_platform_interface
|
||||
sha256: "545fd4c25a07d2775f7d5af05a979b2cac4fbf79393b0a7f5d33ba39ba4f6187"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.10"
|
||||
flutter_inappwebview_web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: flutter_inappwebview_web
|
||||
sha256: d8c680abfb6fec71609a700199635d38a744df0febd5544c5a020bd73de8ee07
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.8"
|
||||
flutter_launcher_icons:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
|
|
|
@ -28,6 +28,7 @@ dependencies:
|
|||
auto_size_text: 3.0.0
|
||||
cached_network_image: 3.3.1
|
||||
firebase_core: 3.1.0
|
||||
flutter_inappwebview: 6.0.0
|
||||
webview_flutter: ^4.8.0
|
||||
rxdart: ^0.27.7
|
||||
collection: 1.18.0
|
||||
|
|
Loading…
Reference in New Issue