Implementation
Widget? fab(BuildContext aContext, AccessState accessState) {
return !accessState.memberIsOwner(widget.app.documentID)
? null
: StyleRegistry.registry()
.styleWithApp(widget.app)
.adminListStyle()
.floatingActionButton(
widget.app,
context,
'PageFloatBtnTag',
Icon(Icons.add),
onPressed: () {
Navigator.of(context).push(
pageRouteBuilder(widget.app,
page: BlocProvider.value(
value: BlocProvider.of<ListedItemListBloc>(context),
child: ListedItemForm(
app: widget.app,
value: null,
formAction: FormAction.addAction))),
);
},
);
}