Hello there,
Firstly the qrcode scanning works very well with getting the result, but I can't get back even using navigator.pop(context) after async function like below:
updateData(BuildContext context) async {
showProgress(context, 'Completing Task...', false);
some functions......
Navigator.of(context).pop();
}
also I used :
[√] Flutter (Channel stable, 3.3.4, on Microsoft Windows [version 10.0.19044.2486], locale fr-FR)
• Flutter version 3.3.4 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision eb6d86ee27 (4 months ago), 2022-10-04 22:31:45 -0700
• Engine revision c08d7d5efc
• Dart version 2.18.2
• DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:/Sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
Hello there, Firstly the qrcode scanning works very well with getting the result, but I can't get back even using navigator.pop(context) after async function like below:
updateData(BuildContext context) async { showProgress(context, 'Completing Task...', false); some functions...... Navigator.of(context).pop(); } also I used :
@override Widget build(BuildContext context) { return WillPopScope( onWillPop: () async { return true; }, child: Scaffold( body: QRView(.....
Here's my flutter doctor:
[√] Flutter (Channel stable, 3.3.4, on Microsoft Windows [version 10.0.19044.2486], locale fr-FR) • Flutter version 3.3.4 on channel stable at C:\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision eb6d86ee27 (4 months ago), 2022-10-04 22:31:45 -0700 • Engine revision c08d7d5efc • Dart version 2.18.2 • DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at C:/Sdk • Platform android-33, build-tools 33.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174) • All Android licenses accepted.
[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 4.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
[√] VS Code (version 1.74.3) • VS Code at C:\Users\mohamed\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.56.0
[√] Connected device (4 available) • DUB LX1 (mobile) • KELQY19528075876 • android-arm64 • Android 8.1.0 (API 27) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [version 10.0.19044.2486] • Chrome (web) • chrome • web-javascript • Google Chrome 109.0.5414.75 • Edge (web) • edge • web-javascript • Microsoft Edge 108.0.1462.42
[√] HTTP Host Availability • All required HTTP hosts are available
Thank you to give us a feedback.