update
This commit is contained in:
parent
a06b1287f0
commit
27f654837b
47 changed files with 428 additions and 205 deletions
12
lib/widgets/logo_widget.dart
Normal file
12
lib/widgets/logo_widget.dart
Normal 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());
|
||||
}
|
||||
}
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue