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,13 +29,15 @@ class _LocationsPageState extends State<LocationsPage> {
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) {