This commit is contained in:
jantunesmesias 2024-08-26 14:12:35 -03:00
parent 337a5dcb82
commit cc66777eee
3 changed files with 4 additions and 7 deletions

View File

@ -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 &&

View File

@ -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],
);
},

View File

@ -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: () {},