diff --git a/lib/main.dart b/lib/main.dart index dba2c7b..4de3fa9 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -67,14 +67,14 @@ class _HomePageState extends State { throw UnimplementedError('No widget for page $pageSelected yet!'); } - Widget newExpense() { + Widget newValue() { return AlertDialog(title: Text("Add New Value"), content: dialog); } Widget? floatingButton; if (dialog != null) { floatingButton = IconButton( - onPressed: newExpense, + onPressed: newValue, icon: Icon(Icons.add), color: Theme.of(context).colorScheme.onSurface, );