31 lines
775 B
Dart
31 lines
775 B
Dart
import 'package:flutter/material.dart';
|
|
import 'screens/splash_screen.dart';
|
|
import 'services/notification_service.dart';
|
|
|
|
void main() async {
|
|
// Pastikan Flutter binding sudah diinisialisasi
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
// Inisialisasi notification service
|
|
final notificationService = NotificationService();
|
|
await notificationService.initialize();
|
|
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Monitoring Pengering Ikan',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: ThemeData(
|
|
primarySwatch: Colors.blue,
|
|
useMaterial3: true,
|
|
),
|
|
home: const SplashScreen(),
|
|
);
|
|
}
|
|
} |