fix: some warnings remove + light / ugly theme added
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:kooltab2/models/closed_tab_item.dart';
|
||||
class ClosedTabCard extends StatefulWidget {
|
||||
final ClosedTab closedTab;
|
||||
|
||||
const ClosedTabCard({required this.closedTab});
|
||||
const ClosedTabCard({super.key, required this.closedTab});
|
||||
|
||||
@override
|
||||
State<ClosedTabCard> createState() => _ClosedTabCardState();
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
|
||||
class SlideConfirm extends StatefulWidget {
|
||||
final VoidCallback onConfirmed;
|
||||
|
||||
const SlideConfirm({required this.onConfirmed});
|
||||
const SlideConfirm({super.key, required this.onConfirmed});
|
||||
|
||||
@override
|
||||
State<SlideConfirm> createState() => _SlideConfirmState();
|
||||
|
||||
Reference in New Issue
Block a user