mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 00:59:28 +01:00
44 lines
737 B
Dart
44 lines
737 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class TextH1 extends StatelessWidget {
|
|
const TextH1(
|
|
this.data, {
|
|
super.key,
|
|
});
|
|
|
|
final String data;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final theme = Theme.of(context);
|
|
|
|
return Text(
|
|
data,
|
|
style: theme.textTheme.headlineLarge?.copyWith(
|
|
fontWeight: FontWeight.w800,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
class TextH2 extends StatelessWidget {
|
|
const TextH2(
|
|
this.data, {
|
|
super.key,
|
|
});
|
|
|
|
final String data;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final theme = Theme.of(context);
|
|
|
|
return Text(
|
|
data,
|
|
style: theme.textTheme.headlineMedium?.copyWith(
|
|
fontWeight: FontWeight.w700,
|
|
),
|
|
);
|
|
}
|
|
}
|