You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
746 B

1 month ago
import 'package:flutter/material.dart';
1 month ago
import 'package:supplier_new/common/splash_screen.dart';
1 month ago
1 month ago
void main() async {
WidgetsFlutterBinding.ensureInitialized();
runApp(MyApp());
1 month ago
}
1 month ago
// Create a global navigator key
final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
1 month ago
1 month ago
class MyApp extends StatelessWidget {
1 month ago
@override
Widget build(BuildContext context) {
return MaterialApp(
1 month ago
debugShowCheckedModeBanner: false,
title: 'Water Management App',
navigatorKey: navigatorKey, // Set the navigator key
1 month ago
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
1 month ago
home: SplashScreen(), // Your initial screen
1 month ago
);
}
}