20 lines
567 B
Dart
20 lines
567 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'dashboard_horizontal.dart';
|
|
import 'dashboard_vertical.dart';
|
|
|
|
class DashboardScreen extends ConsumerWidget {
|
|
const DashboardScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
return OrientationBuilder(
|
|
builder: (context, orientation) {
|
|
return orientation == Orientation.landscape
|
|
? const DashboardHorizontal()
|
|
: const DashboardVertical();
|
|
},
|
|
);
|
|
}
|
|
}
|