Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemChrome.setEnabledSystemUIOverlays is Depriciated #62

Open
Faazlaeeq opened this issue Jun 20, 2024 · 0 comments
Open

SystemChrome.setEnabledSystemUIOverlays is Depriciated #62

Faazlaeeq opened this issue Jun 20, 2024 · 0 comments

Comments

@Faazlaeeq
Copy link

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]);

Faazlaeeq added a commit to Faazlaeeq/r_scan that referenced this issue Jun 20, 2024
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]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant