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),
|
||||
trailing: selectedItem == categoryId
|
||||
? IconButton(
|
||||
padding: const EdgeInsets.all(8),
|
||||
constraints: const BoxConstraints(
|
||||
minWidth: 0,
|
||||
minHeight: 0,
|
||||
),
|
||||
icon: const Icon(
|
||||
Icons.more_vert,
|
||||
color: Colors.white70,
|
||||
size: 20,
|
||||
),
|
||||
onPressed: () => onEditCategory?.call(category),
|
||||
)
|
||||
@@ -181,6 +187,7 @@ class _MenuItemTileState extends State<_MenuItemTile> {
|
||||
),
|
||||
clipBehavior: Clip.antiAlias,
|
||||
child: ListTile(
|
||||
contentPadding: const EdgeInsets.only(left: 16, right: 8),
|
||||
leading: Icon(widget.icon, color: widget.iconColor ?? foregroundColor),
|
||||
trailing: widget.trailing,
|
||||
title: Text(
|
||||
|
||||
Reference in New Issue
Block a user