labelColumnEntry method

Widget labelColumnEntry(
  1. String title,
  2. String subTitle
)

Implementation

Widget labelColumnEntry(String title, String subTitle) {
  double screenWidth = MediaQuery.of(context).size.width;

  return SizedBox(
    width: screenWidth * LABEL_COLUMN_WIDTH,
    child: Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Padding(
          padding: EdgeInsets.only(top: smallPadding, bottom: smallPadding),
          child: Text(title, style: Theme.of(context).textTheme.titleLarge),
        ),
        Padding(
          padding: EdgeInsets.only(top: tinyPadding, bottom: tinyPadding),
          child: Text(subTitle, style: Theme.of(context).textTheme.bodyLarge),
        ),
      ],
    ),
  );
}