mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
library tabs translations
This commit is contained in:
43
lib/app/ui/text.dart
Normal file
43
lib/app/ui/text.dart
Normal file
@@ -0,0 +1,43 @@
|
||||
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,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user