yourWidget method
Implementation
@override
Widget yourWidget(BuildContext context, FollowingDashboardModel? value) {
if (value == null) return Text("Not dashboard");
return BlocBuilder<AccessBloc, AccessState>(
builder: (context, accessState) {
if (accessState is AccessDetermined) {
var appId = app.documentID;
var member = accessState.getMember();
if (member == null) return Text("No member");
return topicContainer(app, context, children: [
BlocProvider<FollowingListBloc>(
create: (context) => FollowingListBloc(
eliudQuery: getQuery(value, member),
detailed: true,
followingRepository: followingRepository(appId: appId)!,
)..add(LoadFollowingList()),
child: simpleTopicContainer(
app,
context,
children: ([
FollowingListWidget(
app: app,
readOnly: true,
widgetProvider: (v) => widgetProvider(app, v!, value),
listBackground: BackgroundModel())
]),
))
]);
} else {
return progressIndicator(app, context);
}
});
}