yourWidget method

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

Implementation

@override
Widget yourWidget(BuildContext context, SimpleTextModel? value) {
  if (value == null) return Text('No simple text');
  var text = ListView(shrinkWrap: true, physics: ScrollPhysics(), children: [
    h1(app, context, value.title!),
    Container(height: 20),
    h5(app, context, value.text!, textAlign: toTextAlign(value.textAlign)),
  ]);
  return text;
}