further refactoring and location search dev

This commit is contained in:
Joshua Burman
2024-12-28 12:41:57 -05:00
parent 8e0ec614a0
commit afe633e697
11 changed files with 179 additions and 113 deletions

View File

@ -20,7 +20,8 @@ Future showGenericDialog(dynamic object, BuildContext parentContext) {
});
}
Future showRemovalDialog(title, content, context, dao, session) {
Future showRemovalDialog(String title, String content, BuildContext context,
dynamic dao, dynamic object) {
return showAdaptiveDialog(
context: context,
builder: (BuildContext context) => AlertDialog(
@ -34,7 +35,7 @@ Future showRemovalDialog(title, content, context, dao, session) {
child: const Text('Cancel'),
),
TextButton(
onPressed: () => {dao.remove(session), Navigator.pop(context, 'OK')},
onPressed: () => {dao.remove(object), Navigator.pop(context, 'OK')},
child: const Text('OK'),
),
],