fix: some warnings remove + light / ugly theme added

This commit is contained in:
2026-07-29 21:25:47 +02:00
parent 031a618220
commit cd75d3a474
8 changed files with 107 additions and 52 deletions
+4 -4
View File
@@ -10,6 +10,7 @@ class ProductTile extends StatelessWidget {
static const _tileImageSize = 280.0;
const ProductTile({
super.key,
required this.product,
required this.enabled,
required this.onTap,
@@ -25,8 +26,7 @@ class ProductTile extends StatelessWidget {
product.stockQuantity > 0 &&
product.stockQuantity <= product.lowStockThreshold;
final hasImage = product.imagePath != null &&
product.imagePath!.isNotEmpty;
final hasImage = product.imagePath != null && product.imagePath!.isNotEmpty;
final borderColor = outOfStock
? scheme.error.withValues(alpha: 0.7)
@@ -58,8 +58,8 @@ class ProductTile extends StatelessWidget {
File(product.imagePath!),
fit: BoxFit.scaleDown,
cacheWidth: _tileImageSize.toInt(),
errorBuilder:
(context, error, stackTrace) => _noImage(scheme),
errorBuilder: (context, error, stackTrace) =>
_noImage(scheme),
)
: _noImage(scheme),
),