30 lines
897 B
Dart
30 lines
897 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'widgets/dashboard_alert_region.dart';
|
|
import 'widgets/responsive_dashboard_layout.dart';
|
|
|
|
/// The single canonical responsive MotorSignal rider dashboard screen.
|
|
///
|
|
/// Unifies portrait, landscape, compact, and tablet displays into one
|
|
/// component hierarchy via [ResponsiveDashboardLayout].
|
|
/// Decoupled from 20 Hz telemetry ticks to eliminate cascading shell rebuilds.
|
|
class DashboardScreen extends ConsumerWidget {
|
|
const DashboardScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
return const Scaffold(
|
|
body: SafeArea(
|
|
child: Column(
|
|
children: [
|
|
DashboardAlertRegion(),
|
|
Expanded(
|
|
child: ResponsiveDashboardLayout(),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|