add auth, format

This commit is contained in:
Phuoc Nguyen
2025-11-07 11:52:06 +07:00
parent 24a8508fce
commit 3803bd26e0
173 changed files with 8505 additions and 7116 deletions

View File

@@ -14,11 +14,7 @@ import 'package:flutter/material.dart';
/// - Centered text
/// - Optional emoji/icon
class HighlightBox extends StatelessWidget {
const HighlightBox({
required this.text,
this.emoji,
super.key,
});
const HighlightBox({required this.text, this.emoji, super.key});
/// Text to display in the highlight box
final String text;

View File

@@ -25,11 +25,7 @@ class PromotionCard extends StatelessWidget {
/// Callback when card or detail button is tapped
final VoidCallback? onTap;
const PromotionCard({
required this.promotion,
this.onTap,
super.key,
});
const PromotionCard({required this.promotion, this.onTap, super.key});
@override
Widget build(BuildContext context) {
@@ -60,9 +56,7 @@ class PromotionCard extends StatelessWidget {
placeholder: (context, url) => Container(
height: 150,
color: AppColors.grey100,
child: const Center(
child: CircularProgressIndicator(),
),
child: const Center(child: CircularProgressIndicator()),
),
errorWidget: (context, url, error) => Container(
height: 150,

View File

@@ -54,11 +54,7 @@ class PromotionSection extends StatelessWidget {
// Section Title with Icon
Row(
children: [
Icon(
icon,
size: 20,
color: AppColors.primaryBlue,
),
Icon(icon, size: 20, color: AppColors.primaryBlue),
const SizedBox(width: 8),
Text(
title,
@@ -84,11 +80,7 @@ class PromotionSection extends StatelessWidget {
///
/// Standard text styling for section content with proper line height.
class PromotionContentText extends StatelessWidget {
const PromotionContentText(
this.text, {
this.isBold = false,
super.key,
});
const PromotionContentText(this.text, {this.isBold = false, super.key});
final String text;
final bool isBold;
@@ -114,10 +106,7 @@ class PromotionContentText extends StatelessWidget {
///
/// Displays a list with custom bullet points.
class PromotionBulletList extends StatelessWidget {
const PromotionBulletList({
required this.items,
super.key,
});
const PromotionBulletList({required this.items, super.key});
final List<String> items;
@@ -178,11 +167,7 @@ class PromotionBulletList extends StatelessWidget {
///
/// Displays contact information with labels and values.
class ContactInfo extends StatelessWidget {
const ContactInfo({
required this.label,
required this.value,
super.key,
});
const ContactInfo({required this.label, required this.value, super.key});
final String label;
final String value;