preVersionfinish
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import '../controller/home_controller.dart';
|
||||
import '../helper/constants.dart';
|
||||
import './my_elevated_button_style_drawer.dart';
|
||||
|
||||
class DrawerWidget extends StatelessWidget {
|
||||
const DrawerWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 30.0),
|
||||
child: Column(
|
||||
// mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text('Drawer Widget', textAlign: TextAlign.center, style: kTextSyleHeaderGrey),
|
||||
SizedBox(height: 50),
|
||||
MyElevatedButtonStyleDrawer(
|
||||
buttonText: 'Dashboard',
|
||||
onPressed: () {
|
||||
Get.find<HomeController>().changeView(MainView.dashboard);
|
||||
Get.close(1);
|
||||
},
|
||||
),
|
||||
SizedBox(height: 20),
|
||||
MyElevatedButtonStyleDrawer(
|
||||
buttonText: 'Traun',
|
||||
onPressed: () {
|
||||
Get.find<HomeController>().changeView(MainView.traun);
|
||||
Get.close(1);
|
||||
},
|
||||
),
|
||||
SizedBox(height: 20),
|
||||
MyElevatedButtonStyleDrawer(
|
||||
buttonText: 'Sarleinsbach',
|
||||
onPressed: () {
|
||||
Get.find<HomeController>().changeView(MainView.sarleinsbach);
|
||||
Get.close(1);
|
||||
},
|
||||
),
|
||||
SizedBox(height: 20),
|
||||
MyElevatedButtonStyleDrawer(
|
||||
buttonText: 'Lannach',
|
||||
onPressed: () {
|
||||
Get.find<HomeController>().changeView(MainView.lannach);
|
||||
Get.close(1);
|
||||
},
|
||||
),
|
||||
SizedBox(height: 60),
|
||||
MyElevatedButtonStyleDrawer(
|
||||
buttonText: 'Settings',
|
||||
onPressed: () {
|
||||
Get.find<HomeController>().changeView(MainView.settings);
|
||||
Get.close(1);
|
||||
},
|
||||
),
|
||||
SizedBox(height: 20),
|
||||
SizedBox(
|
||||
width: 200,
|
||||
height: 40,
|
||||
child: ElevatedButton(
|
||||
style: kElevatetButtonStyleDrawer,
|
||||
onPressed: () {
|
||||
Get.close(1);
|
||||
},
|
||||
child: Text('Close'),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user