Saving and sorting - Book update
This commit is contained in:
+13
-6
@@ -2,28 +2,35 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart'; // Import for SystemChrome
|
||||
import 'screens/home_screen.dart';
|
||||
|
||||
void main() {
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
|
||||
// Lock orientation to portrait only
|
||||
await SystemChrome.setPreferredOrientations([
|
||||
DeviceOrientation.portraitUp,
|
||||
DeviceOrientation.portraitDown,
|
||||
]);
|
||||
|
||||
// Set system UI overlay style globally for the app
|
||||
SystemChrome.setSystemUIOverlayStyle(
|
||||
SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.grey[900], // Set status bar color (top bar)
|
||||
systemNavigationBarColor: Colors.grey[900], // Set navigation bar color
|
||||
systemNavigationBarIconBrightness: Brightness.light, // Set navigation icon color to light
|
||||
statusBarColor: Colors.grey[900],
|
||||
systemNavigationBarColor: Colors.grey[900],
|
||||
systemNavigationBarIconBrightness: Brightness.light,
|
||||
),
|
||||
);
|
||||
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'App with Calendar',
|
||||
title: 'SDK Muta',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.white),
|
||||
|
||||
Reference in New Issue
Block a user