pickerColumn method

Column pickerColumn({
  1. String? text,
  2. required VoidCallback onPressed,
})

Implementation

Column pickerColumn({
  String? text,
  required VoidCallback onPressed,
}) =>
    Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        Center(
          child: Text(
            text ??
                'The ${description.label} will push result in a new screen',
            textAlign: TextAlign.center,
            style: const TextStyle(fontSize: 18),
          ),
        ),
        TextButton(
          onPressed: onPressed,
          child: FittedBox(
            child: Text(
              'Open the ${description.label}',
              style: const TextStyle(fontSize: 20),
            ),
          ),
        ),
      ],
    );