From 96811f5bfdded2b02bf6c62b355679d553a7cc41 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 1 Feb 2025 16:51:12 -0700 Subject: [PATCH] Make the name of the function more agnostic. --- lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, );