yourWidget method

  1. @override
Widget yourWidget(
  1. BuildContext context,
  2. ShopFrontModel value
)
override

Implementation

@override
Widget yourWidget(BuildContext context, ShopFrontModel value) {
  var appState = AccessBloc.getState(context);
  if (appState is AccessDetermined) {
    var widgets = <Widget>[];
    if (value.title != null) {
      widgets.add(h4(app, context, value.title!));
      widgets.add(Utils.getSizedBox(height: 10));
    }

    if (value.description != null) {
      widgets.add(text(app, context, value.description!));
      widgets.add(Utils.getSizedBox(height: 10));
    }
    widgets.add(_grid(context, value));
    return Utils.getShrinkedListView(app, context, widgets);
  } else {
    return Text('App not loaded');
  }
}