showStatusBar function
Restores the status bar and navigation bar visibility.
- ✅ Enables both overlays (status bar + navigation bar).
- ✅ Works after using SystemUiMode.immersive.
- ✅ Call this method when you need to show system UI again.
Example Usage:
await showStatusBar();
Implementation
Future<void> showStatusBar() async {
SystemChrome.setEnabledSystemUIMode(
SystemUiMode.manual,
overlays: SystemUiOverlay.values,
);
}