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