h3 static method
Implementation
static Widget h3(
String text, {
BuildContext? context,
TextAlign? textAlign,
Key? key,
Color? color,
TextStyle? style,
}) {
assert(color == null || style == null);
if (context == null) {
return Builder(
builder: (context) {
final GBThemeData themeData = GBTheme.of(context);
return GBText(
text,
key: key,
textAlign: textAlign,
style: color != null
? themeData.textTheme.displayMedium!.merge(TextStyle(
color: color,
))
: themeData.textTheme.displayMedium!.merge(style),
);
},
);
}
final GBThemeData themeData = GBTheme.of(context);
return GBText(
text,
key: key,
style: color != null
? themeData.textTheme.displayMedium!.merge(TextStyle(
color: color,
))
: themeData.textTheme.displayMedium!.merge(style),
);
}