- Implemented RawFrameDebugScreen for displaying ECU frame data and diagnostics. - Created DtcScreen to show active Diagnostic Trouble Codes (DTCs) with detailed descriptions. - Added DtcRow widget for individual DTC representation. - Introduced GraphScreen for visualizing sensor data over time with customizable time windows. - Developed SensorListScreen to display available sensors and their current values. - Enhanced SettingsScreen with options for Bluetooth connection, ECU protocol selection, polling interval, and theme settings. - Added AppColors and AppTheme for consistent theming across the application. - Implemented BtStatusChip to show Bluetooth connection status in the app bar. - Created RecordFab for starting and stopping data recording sessions.
27 lines
674 B
Dart
27 lines
674 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
import 'core/providers/theme_provider.dart';
|
|
import 'ui/theme/app_theme.dart';
|
|
import 'ui/screens/bt_picker/bt_picker_screen.dart';
|
|
|
|
void main() {
|
|
runApp(const ProviderScope(child: HvbtApp()));
|
|
}
|
|
|
|
class HvbtApp extends ConsumerWidget {
|
|
const HvbtApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
final themeVariant = ref.watch(themeProvider);
|
|
|
|
return MaterialApp(
|
|
title: 'HV BT Dashboard',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: AppTheme.build(themeVariant),
|
|
home: const BtPickerScreen(),
|
|
);
|
|
}
|
|
}
|