This commit is contained in:
Patrick Alvin Alcala 2025-02-18 17:19:24 +08:00
parent a06b1287f0
commit 27f654837b
47 changed files with 428 additions and 205 deletions

View file

@ -0,0 +1,12 @@
import 'package:flutter/material.dart';
class LogoWidget extends StatelessWidget {
final double size;
const LogoWidget({super.key, required this.size});
@override
Widget build(BuildContext context) {
return Image.asset('assets/ofa_logo.webp',
width: size, cacheWidth: (size * MediaQuery.of(context).devicePixelRatio).round());
}
}

View file

@ -8,13 +8,15 @@ class TextWidget extends StatelessWidget {
final bool? bold;
final bool? footer;
final bool? underlined;
final Color? color;
const TextWidget({super.key, required this.text, this.size, this.opacity, this.bold, this.footer, this.underlined});
const TextWidget(
{super.key, required this.text, this.size, this.opacity, this.bold, this.footer, this.underlined, this.color});
@override
Widget build(BuildContext context) {
final textStyle = TextStyle(
color: Color.fromRGBO(255, 255, 255, opacity ?? 1),
color: color ?? Color.fromRGBO(255, 255, 255, opacity ?? 1),
fontSize: size ?? 28,
fontWeight: bold == true ? FontWeight.bold : FontWeight.normal,
decoration: underlined == true ? TextDecoration.underline : TextDecoration.none,