35 lines
881 B
Dart
35 lines
881 B
Dart
import 'package:flutter/material.dart';
|
|
import '../router/app_router_delegate.dart';
|
|
import 'app_navigation_rail.dart';
|
|
import 'app_top_bar/app_top_bar.dart';
|
|
|
|
class AppNavigation extends StatelessWidget {
|
|
const AppNavigation({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
double px1 = 1/View.of(context).devicePixelRatio;
|
|
return Scaffold(
|
|
body: Row(
|
|
children: [
|
|
const AppNavigationRail(),
|
|
Expanded(
|
|
child: Column(
|
|
children: [
|
|
const AppTopBar(),
|
|
Divider(height: px1,),
|
|
Expanded(
|
|
child: Router(
|
|
routerDelegate: router,
|
|
backButtonDispatcher: RootBackButtonDispatcher(),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|