topicContainer method
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,
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,
));
}