Update main.dart

This commit is contained in:
HappyCoder256 2024-11-14 21:55:17 -08:00 committed by GitHub
parent fed5d5fabc
commit 728f9291ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,12 @@ String appDir = "";
Map<String, String> environmentVariables = {};
void main() async {
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top]);// Hides both the status and navigation bars
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
systemNavigationBarDividerColor: Colors.blue,
systemNavigationBarColor: Colors.blue,
systemNavigationBarIconBrightness: Brightness.light,
))
if (isProduction) {
// ignore: avoid_returning_null_for_void
debugPrint = (String? message, {int? wrapWidth}) => null;