renderDefaultTheme method
Widget
renderDefaultTheme(
- dynamic context
)
Implementation
Widget renderDefaultTheme(context) {
return Container(
decoration: buildBorder(context),
child: Stack(
children: [
Align(
alignment: const AlignmentDirectional(0, -1),
child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB(12, 2, 0, 0),
child: renderLabels(topLabels ?? []))),
Positioned.fill(
child: Container(
decoration: BoxDecoration(
image: buildImage(context),
borderRadius: BorderRadius.circular(12),
))),
if (hideShading != true) renderOverlay(),
Align(
alignment: const AlignmentDirectional(0, -0.94),
child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB(12, 2, 0, 0),
child: renderLabels(topLabels ?? []))),
Align(
alignment: const AlignmentDirectional(1, 1),
child: Container(
width: double.infinity,
height: 100,
alignment: const AlignmentDirectional(0, 0),
child: Padding(
padding: const EdgeInsets.only(left: 10, right: 10, bottom: 20),
child: Row(
mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Expanded(
child: Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.end,
children: [
renderTitle(title, titleColor, titleSize),
SizedBox(height: 4),
renderLabels(bottomLabels ?? [])
// Todo: Add subtitle here if needed
],
),
),
),
if (hideShading != true) renderActionButton(),
],
),
),
),
),
],
),
);
}