Skip to content

Commit

Permalink
[FIX] AndroidのNavigationBarを透明に (#746)
Browse files Browse the repository at this point in the history
fix: AndroidのNavigationBarを透明に
  • Loading branch information
YumNumm authored Jun 29, 2024
1 parent a44f36e commit fbf4873
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@ late final ProviderContainer container;
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();

await SystemChrome.setEnabledSystemUIMode(
SystemUiMode.edgeToEdge,
overlays: [SystemUiOverlay.top],
);

SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.transparent,
systemNavigationBarContrastEnforced: true,
),
);

await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
Expand Down

0 comments on commit fbf4873

Please sign in to comment.