Initial commit
This commit is contained in:
38
lib/main.dart
Normal file
38
lib/main.dart
Normal file
@@ -0,0 +1,38 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'providers/servicio_provider.dart';
|
||||
import 'providers/factura_provider.dart';
|
||||
import 'providers/configuracion_provider.dart';
|
||||
import 'screens/splash_screen.dart';
|
||||
|
||||
void main() {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
runApp(
|
||||
MultiProvider(
|
||||
providers: [
|
||||
ChangeNotifierProvider(create: (_) => ServicioProvider()),
|
||||
ChangeNotifierProvider(create: (_) => FacturaProvider()),
|
||||
ChangeNotifierProvider(create: (_) => ConfiguracionProvider()),
|
||||
],
|
||||
child: const HogarControlApp(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
class HogarControlApp extends StatelessWidget {
|
||||
const HogarControlApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'HogarControl',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
colorSchemeSeed: Colors.teal,
|
||||
useMaterial3: true,
|
||||
brightness: Brightness.light,
|
||||
),
|
||||
home: const SplashScreen(),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user