mirror of
https://github.com/timokz/flutter-vienna-hackathon-25.git
synced 2025-11-08 22:44:21 +01:00
18 lines
405 B
Dart
18 lines
405 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class HeadingText extends StatelessWidget {
|
|
final String text;
|
|
|
|
const HeadingText({super.key, required this.text});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.only(top: 20, bottom: 10),
|
|
child: Text(
|
|
text,
|
|
style: Theme.of(context).textTheme.headlineLarge,
|
|
),
|
|
);
|
|
}
|
|
}
|