Open t-m-z opened 1 year ago
I checked the Internet and found
Hence I changed initState() in r_scan_view.dart
SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top])
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top]);
same issue.
When trying to compile I receive this message: _/C:/Users/thoma/AppData/Local/Pub/Cache/hosted/pub.dev/r_scan-0.1.6+1/lib/src/r_scan_view.dart:38:18: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top]); ^^^^^^^^^^^^^^^^^^^^^^^^^^ Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Where: Script 'C:\Software\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Try:
Get more help at https://help.gradle.org/
BUILD FAILED in 2m 19s Exception: Gradle task assembleDebug failed with exit code 1_
Flutter doctor says: Flutter (Channel stable, 3.10.0, on Microsoft Windows [Version 10.0.22621.1702], locale en-DE) • Flutter version 3.10.0 on channel stable at C:\Software\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 84a1e904f4 (4 days ago), 2023-05-09 07:41:44 -0700 • Engine revision d44b5a94c9 • Dart version 3.0.0 • DevTools version 2.23.1