mobile: Access editors from context menu

This commit is contained in:
Elias Projahn 2020-05-13 21:46:53 +02:00
parent 7b63cc7aaf
commit 3af7c23bbc
3 changed files with 88 additions and 43 deletions

View file

@ -85,6 +85,31 @@ class _HomeScreenState extends State<HomeScreen> {
),
),
),
onLongPress: () {
showDialog(
context: context,
builder: (context) {
return SimpleDialog(
children: <Widget>[
ListTile(
title: Text('Edit person'),
onTap: () async {
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) => PersonEditor(
person: person,
),
fullscreenDialog: true,
),
);
},
),
],
);
},
);
},
),
),
);