mirror of
https://github.com/dstark5/Openlib.git
synced 2025-06-06 12:13:56 +08:00
22 lines
491 B
Dart
22 lines
491 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class TitleText extends StatelessWidget {
|
|
const TitleText(this.text, {super.key});
|
|
|
|
final String text;
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.only(left: 10, bottom: 7),
|
|
child: Text(
|
|
text,
|
|
style: TextStyle(
|
|
fontSize: 19,
|
|
fontWeight: FontWeight.bold,
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|