buildTitle method

Widget buildTitle(
  1. BuildContext context
)

Implementation

Widget buildTitle(BuildContext context) {
  return Column(
    mainAxisAlignment: MainAxisAlignment.center,
    crossAxisAlignment: CrossAxisAlignment.start,
    children: [
      DefaultTextStyle(
        style: TextStyle(
          color: enabled
              ? Theme.of(context).colorScheme.onSurface
              : Theme.of(context).disabledColor,
          fontSize: 15,
        ),
        child: title,
      ),
      if (description != null) ...[
        const SizedBox(height: 2),
        DefaultTextStyle(
          style: TextStyle(
            color: enabled
                ? Theme.of(context).colorScheme.onSurfaceVariant
                : Theme.of(context).disabledColor,
            fontSize: 13,
          ),
          child: description!,
        ),
      ],
    ],
  );
}