yourWidget method
Implementation
@override
Widget yourWidget(BuildContext context, FeedFrontModel? value) {
var modalRoute = ModalRoute.of(context) as ModalRoute;
var feedId = value!.feed!.documentID;
return BlocBuilder<AccessBloc, AccessState>(
builder: (context, accessState) {
if (accessState is AccessDetermined) {
return BlocProvider<ProfileBloc>(
create: (context) => ProfileBloc()
..add(
InitialiseProfileEvent(app, feedId, accessState, modalRoute)),
child: FeedFront(app, value));
} else {
return progressIndicator(app, context);
}
});
}