From cf1214e2aedebc9be0e6902a0bdbfedc22a7e859 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Thu, 26 Sep 2024 18:17:09 +0200 Subject: [PATCH] fix --- lib/pages/locations.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/pages/locations.dart b/lib/pages/locations.dart index b6bbe9f..7d00bd9 100644 --- a/lib/pages/locations.dart +++ b/lib/pages/locations.dart @@ -29,13 +29,15 @@ class _LocationsPageState extends State { TreeNode buildTree(BuildContext context, String locID) { return TreeNode( key: ValueKey(locID), - content: ListTile( - title: Text(locations![locID]!.name), - onTap: () { - Navigator.of(context).push(MaterialPageRoute( - builder: (context) => LocationView(locations![locID]!), - )); - }, + content: Expanded( + child: ListTile( + title: Text(locations![locID]!.name), + onTap: () { + Navigator.of(context).push(MaterialPageRoute( + builder: (context) => LocationView(locations![locID]!), + )); + }, + ), ), children: locations!.keys.where((key2) { if (locations![key2]!.parent != null) {