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) {