dev #1

Merged
aefril merged 128 commits from dev into main 2025-08-13 17:19:48 +00:00
2 changed files with 16 additions and 11 deletions
Showing only changes of commit 74460c921b - Show all commits

View File

@ -2,7 +2,8 @@ import 'package:flutter/material.dart';
class AppColors {
/// primary = #3949AB
static const Color primary = Color(0xff6466f1);
static const Color primary = Color(0xff36175e);
static const Color secondary = Color(0xfff1eaf9);
/// grey = #B7B7B7
static const Color grey = Color(0xffB7B7B7);

View File

@ -50,21 +50,25 @@ class ProductCard extends StatelessWidget {
),
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(40.0)),
child:
// Icon(
// Icons.fastfood,
// size: 40,
// color: AppColors.primary,
// ),
CachedNetworkImage(
child: CachedNetworkImage(
imageUrl: data.image!.contains('http')
? data.image!
: '${Variables.baseUrl}/${data.image}',
fit: BoxFit.cover,
width: 60,
height: 60,
fit: BoxFit.cover,
errorWidget: (context, url, error) =>
const Icon(Icons.error),
errorWidget: (context, url, error) => Container(
width: 60,
height: 60,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: AppColors.disabled.withOpacity(0.4),
),
child: const Icon(
Icons.image_not_supported,
color: AppColors.grey,
),
),
),
),
),