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) {
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue