feat: Enhance MenuDrawer item styling with padding and constraints for better layout
This commit is contained in:
@@ -58,9 +58,15 @@ class MenuDrawer extends StatelessWidget {
|
|||||||
textColor: Color(category.colorValue ?? 0xFFFFC107),
|
textColor: Color(category.colorValue ?? 0xFFFFC107),
|
||||||
trailing: selectedItem == categoryId
|
trailing: selectedItem == categoryId
|
||||||
? IconButton(
|
? IconButton(
|
||||||
|
padding: const EdgeInsets.all(8),
|
||||||
|
constraints: const BoxConstraints(
|
||||||
|
minWidth: 0,
|
||||||
|
minHeight: 0,
|
||||||
|
),
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
Icons.more_vert,
|
Icons.more_vert,
|
||||||
color: Colors.white70,
|
color: Colors.white70,
|
||||||
|
size: 20,
|
||||||
),
|
),
|
||||||
onPressed: () => onEditCategory?.call(category),
|
onPressed: () => onEditCategory?.call(category),
|
||||||
)
|
)
|
||||||
@@ -181,6 +187,7 @@ class _MenuItemTileState extends State<_MenuItemTile> {
|
|||||||
),
|
),
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
|
contentPadding: const EdgeInsets.only(left: 16, right: 8),
|
||||||
leading: Icon(widget.icon, color: widget.iconColor ?? foregroundColor),
|
leading: Icon(widget.icon, color: widget.iconColor ?? foregroundColor),
|
||||||
trailing: widget.trailing,
|
trailing: widget.trailing,
|
||||||
title: Text(
|
title: Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user