floatingActionButton method
- BuildContext context
override
/adding a new DataT, if this is not null the DropDown will create a new floatingactionbutton
for adding new DataT to this level (or other additional functionality)
Implementation
@override
Widget? floatingActionButton(BuildContext context) {
return PopUpActionbutton(
expandedChild: (onCancel) => adder(
parent: currentData,
onCancel: onCancel,
onDone: (category) async {
final createdCheckpoint =
await API().setNew(category, caller: currentData);
if (createdCheckpoint != null) {
CategoryProgressState.instance.checkpointAdded(
categoryId: currentData.id,
);
}
notifyListeners();
},
),
);
}