yourWidget method
Implementation
@override
Widget yourWidget(BuildContext context, DynamicWidgetModel? value) {
return BlocBuilder<AccessBloc, AccessState>(
builder: (context, accessState) {
if (accessState is AccessDetermined) {
// UPGRADE dynamic_widget
return text(app, context,
"dynamic_widget needs an upgrade cos it includes reference to RaisedButton which has been removed from flutter sdk");
/*
var theWidget = DynamicWidgetBuilder.build(value!.content ?? '', context, DefaultClickListener());
if (theWidget != null) {
return theWidget;
} else {
return text(app, context, "Couldn't create the contents");
}
*/
} else {
return progressIndicator(app, context);
}
});
}