standardizedText static method
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),
),
);