24 lines
563 B
Dart
24 lines
563 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:satu/shared/app_colors.dart';
|
|
|
|
class NoteText extends StatelessWidget {
|
|
final String text;
|
|
final TextAlign? textAlign;
|
|
final Color? color;
|
|
final double? fontSize;
|
|
const NoteText(this.text, {this.textAlign, this.color, this.fontSize});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Text(
|
|
text,
|
|
textAlign: textAlign,
|
|
style: TextStyle(
|
|
fontSize: fontSize ?? 12,
|
|
fontWeight: FontWeight.normal,
|
|
color: color ?? dayColor,
|
|
),
|
|
);
|
|
}
|
|
}
|