templateBand function

Widget templateBand(
  1. TemplateTheme theme, {
  2. required String kicker,
  3. required String title,
})

Accent band. kicker and title are caller strings, not fixed English.

Implementation

Widget templateBand(TemplateTheme theme, {required String kicker, required String title}) {
  return Container(
    width: double.infinity,
    padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
    decoration: BoxDecoration(color: theme.accent),
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      mainAxisSize: MainAxisSize.min,
      children: <Widget>[
        Text(
          kicker,
          style: TextStyle(fontSize: 8, color: theme.onAccent),
        ),
        SizedBox(height: 4),
        Text(
          title,
          style: TextStyle(
            fontSize: 18,
            fontWeight: FontWeight.bold,
            color: theme.onAccent,
          ),
        ),
      ],
    ),
  );
}