WIP
This commit is contained in:
parent
337a5dcb82
commit
cc66777eee
|
@ -502,7 +502,7 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
|||
}();
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 10.0, 0.0, 0.0),
|
||||
padding: const EdgeInsetsDirectional.only(top: 10),
|
||||
child: Builder(
|
||||
builder: (context) {
|
||||
if (widget.style == MenuView.list_grid &&
|
||||
|
|
|
@ -109,7 +109,7 @@ class _MenuListViewComponentWidgetState
|
|||
Widget buildMenuList(BuildContext context) {
|
||||
return SizedBox(
|
||||
width: MediaQuery.of(context).size.width,
|
||||
height: MediaQuery.of(context).size.height * 0.8,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
child: ListView.separated(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15),
|
||||
shrinkWrap: true,
|
||||
|
@ -118,8 +118,6 @@ class _MenuListViewComponentWidgetState
|
|||
itemCount: widget.options.length,
|
||||
itemBuilder: (context, index) {
|
||||
return SizedBox(
|
||||
// height: MediaQuery.of(context).size.height * 0.08,
|
||||
// width: MediaQuery.of(context).size.width * 0.08,
|
||||
child: widget.options[index],
|
||||
);
|
||||
},
|
||||
|
|
|
@ -15,7 +15,6 @@ class CustomDrawer extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
width: MediaQuery.of(context).size.width * 0.8,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
child: Drawer(
|
||||
elevation: 16.0,
|
||||
child: Container(
|
||||
|
@ -162,8 +161,8 @@ class CustomDrawer extends StatelessWidget {
|
|||
);
|
||||
}
|
||||
|
||||
Widget _buildDrawerBody() {
|
||||
return SingleChildScrollView(
|
||||
Expanded _buildDrawerBody() {
|
||||
return Expanded(
|
||||
child: wrapWithModel(
|
||||
model: model.menuComponentModel,
|
||||
updateCallback: () {},
|
||||
|
|
Loading…
Reference in New Issue