Make the name of the function more agnostic.
This commit is contained in:
parent
c44d4553c3
commit
96811f5bfd
@ -67,14 +67,14 @@ class _HomePageState extends State<HomePage> {
|
||||
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,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user