passo_mobile_app/lib/screens/offline/homepage/drawer.dart

43 lines
1.4 KiB
Dart
Raw Normal View History

2023-10-06 04:43:37 +00:00
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_zoom_drawer/flutter_zoom_drawer.dart';
import 'package:unit2/model/offline/offlane_modules.dart';
import 'package:unit2/screens/offline/homepage/menu_screen.dart';
import 'package:unit2/screens/offline/homepage/module_screen.dart';
import 'package:unit2/utils/global.dart';
import '../../../../bloc/user/user_bloc.dart';
import '../../../../widgets/splash_screen.dart';
class OfflineDrawerScreen extends StatefulWidget {
2023-10-06 12:19:06 +00:00
const OfflineDrawerScreen({
Key? key,
}) : super(
key: key,
);
2023-10-06 04:43:37 +00:00
@override
State<OfflineDrawerScreen> createState() => _OfflineDrawerScreenState();
}
class _OfflineDrawerScreenState extends State<OfflineDrawerScreen> {
final zoomDrawerController = ZoomDrawerController();
@override
@override
Widget build(BuildContext context) {
2023-10-06 12:19:06 +00:00
return ZoomDrawer(
controller: zoomDrawerController,
menuScreen: const OfflineMenuScreen(),
mainScreen: SizedBox(
height: MediaQuery.of(context).size.height,
child: const OfflineModuleScreen()),
style: DrawerStyle.defaultStyle,
borderRadius: 24.0,
showShadow: false,
angle: -0.0,
slideWidth: MediaQuery.of(context).size.width * .90,
openCurve: Curves.fastOutSlowIn,
closeCurve: Curves.easeOut,
menuBackgroundColor: Colors.grey,
);
2023-10-06 04:43:37 +00:00
}
}