mirror of
https://github.com/dstark5/Openlib.git
synced 2025-09-18 20:54:10 +08:00
22 lines
528 B
Dart
22 lines
528 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, right: 10, top: 20, bottom: 10),
|
|
child: Text(
|
|
text,
|
|
style: const TextStyle(
|
|
fontSize: 25,
|
|
fontWeight: FontWeight.w500,
|
|
// color: Theme.of(context).colorScheme.onInverseSurface,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|