standardizedText static method

Widget standardizedText(
  1. String text, {
  2. TextStyle? style,
})

Creates unified (color: Colors.white, textAlign: TextAlign.center) text inside Scrollbar.

Implementation

static Widget standardizedText(
  String text, {
  TextStyle? style,
}) =>
    Scrollbar(
      child: Text(
        text,
        textAlign: TextAlign.center,
        style: style ?? TextStyle(color: Colors.white),
      ),
    );