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) { TreeNode buildTree(BuildContext context, String locID) {
return TreeNode( return TreeNode(
key: ValueKey(locID), key: ValueKey(locID),
content: ListTile( content: Expanded(
title: Text(locations![locID]!.name), child: ListTile(
onTap: () { title: Text(locations![locID]!.name),
Navigator.of(context).push(MaterialPageRoute( onTap: () {
builder: (context) => LocationView(locations![locID]!), Navigator.of(context).push(MaterialPageRoute(
)); builder: (context) => LocationView(locations![locID]!),
}, ));
},
),
), ),
children: locations!.keys.where((key2) { children: locations!.keys.where((key2) {
if (locations![key2]!.parent != null) { if (locations![key2]!.parent != null) {