Skip to content

Commit

Permalink
fix: update example app
Browse files Browse the repository at this point in the history
  • Loading branch information
maelchiotti committed Dec 15, 2024
1 parent 1bfab0d commit aa6b61c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:settings_tiles/settings_tiles.dart';

void main() {
WidgetsFlutterBinding.ensureInitialized();

// Display the application behind the system's notifications bar and navigation bar
// See https://github.com/flutter/flutter/issues/40974
// See https://github.com/flutter/flutter/issues/34678
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.transparent,
),
);

runApp(const MyApp());
}

/// Example app.
class MyApp extends StatefulWidget {
/// Example app.
const MyApp({super.key});

@override
Expand All @@ -28,7 +39,7 @@ class _MyAppState extends State<MyApp> {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('settings_tiles example app'),
title: const Text('settings_tiles example'),
),
body: Builder(builder: (context) {
return SingleChildScrollView(
Expand Down

0 comments on commit aa6b61c

Please sign in to comment.