fix: some warnings remove + light / ugly theme added
This commit is contained in:
@@ -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),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user