This commit is contained in:
JMARyA 2024-09-26 18:17:09 +02:00
parent d53080dd32
commit cf1214e2ae
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -29,7 +29,8 @@ class _LocationsPageState extends State<LocationsPage> {
TreeNode buildTree(BuildContext context, String locID) {
return TreeNode(
key: ValueKey(locID),
content: ListTile(
content: Expanded(
child: ListTile(
title: Text(locations![locID]!.name),
onTap: () {
Navigator.of(context).push(MaterialPageRoute(
@ -37,6 +38,7 @@ class _LocationsPageState extends State<LocationsPage> {
));
},
),
),
children: locations!.keys.where((key2) {
if (locations![key2]!.parent != null) {
return locations![key2]!.parent! == locations![locID]!.id;