31 lines
786 B
Dart
31 lines
786 B
Dart
import 'package:flutter/material.dart';
|
|
import 'login.dart';
|
|
import 'notificaciones_service.dart'; // ← agrega este import
|
|
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized(); // ← primero esto
|
|
await initNotifications(); // ← luego esto
|
|
runApp(const MyApp()); // ← al final esto
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Reco App',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(
|
|
seedColor: Colors.green,
|
|
primary: Colors.green[700],
|
|
),
|
|
useMaterial3: true,
|
|
),
|
|
home: const LoginScreen(),
|
|
);
|
|
}
|
|
}
|
|
|