TKK_E32210691/lib/main.dart

38 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'firebase_options.dart';
import 'home_view.dart';
import 'snr_rssi_delay_view.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primaryColor: Colors.green[700],
scaffoldBackgroundColor: Colors.green[50],
appBarTheme: AppBarTheme(
backgroundColor: Colors.green[700],
titleTextStyle: TextStyle(color: Colors.white, fontSize: 20),
),
snackBarTheme: SnackBarThemeData(
backgroundColor: Colors.green[700],
contentTextStyle: TextStyle(color: Colors.white),
),
),
home: HomeView(),
debugShowCheckedModeBanner: false,
);
}
}