2026-08-24 06:37:11 +09:00
|
|
|
import 'package:flutter/material.dart';
|
2026-08-24 06:51:06 +09:00
|
|
|
import 'package:iperf3gui/data/services/iperf3_binary_path_provider.dart';
|
|
|
|
|
import 'package:iperf3gui/ui/features/test_run/test_run_screen.dart';
|
2026-08-24 06:37:11 +09:00
|
|
|
|
2026-08-24 06:51:06 +09:00
|
|
|
Future<void> main() async {
|
|
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
|
await Iperf3BinaryPathProvider.initialize();
|
|
|
|
|
runApp(const Iperf3GuiApp());
|
2026-08-24 06:37:11 +09:00
|
|
|
}
|
|
|
|
|
|
2026-08-24 06:51:06 +09:00
|
|
|
class Iperf3GuiApp extends StatelessWidget {
|
|
|
|
|
const Iperf3GuiApp({super.key});
|
2026-08-24 06:37:11 +09:00
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return MaterialApp(
|
2026-08-24 06:51:06 +09:00
|
|
|
title: 'iperf3-gui',
|
2026-08-24 06:37:11 +09:00
|
|
|
theme: ThemeData(
|
2026-08-24 06:51:06 +09:00
|
|
|
colorSchemeSeed: Colors.blue,
|
|
|
|
|
useMaterial3: true,
|
2026-08-24 06:37:11 +09:00
|
|
|
),
|
2026-08-24 06:51:06 +09:00
|
|
|
home: const TestRunScreen(),
|
2026-08-24 06:37:11 +09:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|