Skip to content

Commit

Permalink
issue rhymelph#62 fix
Browse files Browse the repository at this point in the history
Error:

/C:/Users/FaazLaeeq/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]);
    
Solution:

change line 38 from this:
    SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top]);
to this:
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
        overlays: [SystemUiOverlay.top]);
  • Loading branch information
Faazlaeeq authored Jun 20, 2024
1 parent a122b35 commit 2516935
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/r_scan_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class _RScanViewState extends State<RScanView> {
void initState() {
super.initState();
_controller = widget.controller;
SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top]);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
overlays: [SystemUiOverlay.top]);
}

@override
Expand Down

0 comments on commit 2516935

Please sign in to comment.