diff --git a/modules/tolyui_navigation/lib/src/rail_menu_tree/view/menu.dart b/modules/tolyui_navigation/lib/src/rail_menu_tree/view/menu.dart index 8ceca57..2a49ec4 100644 --- a/modules/tolyui_navigation/lib/src/rail_menu_tree/view/menu.dart +++ b/modules/tolyui_navigation/lib/src/rail_menu_tree/view/menu.dart @@ -52,18 +52,22 @@ class TolyRailMenuTree extends StatelessWidget { color: backgroundColor ?? tolyMenuTheme?.backgroundColor ?? Colors.transparent, - child: ListView.builder( - itemCount: meta.items.length, - itemBuilder: (_, index) => MenuNodeItemView( - builder: effectBuilder, - onSelect: onSelect, - data: meta.items[index], - activeMenu: meta.activeMenu?.id, - expandMenus: meta.expandMenus, - expandBackgroundColor: expandBackgroundColor ?? - tolyMenuTheme?.expandBackgroundColor ?? - Colors.transparent, - animationConfig: animationConfig, + child: MediaQuery.removePadding( + context: context, + removeTop: true, + child: ListView.builder( + itemCount: meta.items.length, + itemBuilder: (_, index) => MenuNodeItemView( + builder: effectBuilder, + onSelect: onSelect, + data: meta.items[index], + activeMenu: meta.activeMenu?.id, + expandMenus: meta.expandMenus, + expandBackgroundColor: expandBackgroundColor ?? + tolyMenuTheme?.expandBackgroundColor ?? + Colors.transparent, + animationConfig: animationConfig, + ), ), ), );