fix
This commit is contained in:
parent
d53080dd32
commit
cf1214e2ae
1 changed files with 9 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue