h2 method
Implementation
Widget h2() {
return Builder(builder: (context) {
Widget child;
if (this is WrappedText) {
child = (this as WrappedText).copyWithStyle(
(context, theme) => theme.typography.h2,
);
} else {
child = WrappedText(
style: (context, theme) => theme.typography.h2, child: this);
}
return Container(
margin: const EdgeInsets.only(top: 40),
padding: const EdgeInsets.only(bottom: 8),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
color: Theme.of(context).colorScheme.border,
width: 1,
),
),
),
child: child,
);
});
}