topicContainer method

  1. @override
Widget topicContainer(
  1. AppModel app,
  2. BuildContext context, {
  3. required List<Widget> children,
  4. DecorationImage? image,
  5. double? height,
  6. double? width,
  7. String? title,
  8. bool? collapsible,
  9. bool? collapsed = false,
  10. BackgroundModel? backgroundOverride,
})
override

Implementation

@override
Widget topicContainer(AppModel app, BuildContext context,
    {required List<Widget> children,
    DecorationImage? image,
    double? height,
    double? width,
    String? title,
    bool? collapsible,
    bool? collapsed = false,
    BackgroundModel? backgroundOverride}) {
  if (title != null) {
    var newChildren = [text(app, context, title), divider(app, context)];
    newChildren.addAll(children);
    children = newChildren;
  }
  return Container(
      width: width,
      height: height,
      decoration: BoxDecoration(
        image: image,
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: children,
      ));
}