fix: remove useless comments

This commit is contained in:
2026-09-16 22:07:47 +02:00
parent 66a4edacb7
commit f6d7c21691
5 changed files with 5 additions and 93 deletions
-41
View File
@@ -199,9 +199,6 @@ class _BarScreenViewState extends State<BarScreenView> {
}
}
// ---------------------------------------------------------------------------
// Product grid
// ---------------------------------------------------------------------------
class _ProductGrid extends StatelessWidget {
final List<Product> products;
final int rows;
@@ -353,10 +350,6 @@ class _ProductGrid extends StatelessWidget {
}
}
// ---------------------------------------------------------------------------
// Tab panel
// ---------------------------------------------------------------------------
class _TabPanel extends StatefulWidget {
final List<BarTab> tabs;
final BarTab? selectedTab;
@@ -408,9 +401,6 @@ class _TabPanelState extends State<_TabPanel> {
}).toList();
return DecoratedBox(
// A step darker/lighter than the main surface, whichever direction
// the active theme goes — matches how it read against the dark
// surface color originally.
decoration: BoxDecoration(color: scheme.surfaceContainerLow),
child: Padding(
padding: const EdgeInsets.all(16),
@@ -457,37 +447,6 @@ class _TabPanelState extends State<_TabPanel> {
],
),
//
// const SizedBox(height: 18),
//
// Row(
// children: [
// Text(
// l10n.openTabs.toUpperCase(),
// style: Theme.of(context).textTheme.bodySmall?.copyWith(
// fontWeight: FontWeight.w700,
// letterSpacing: 0.8,
// ),
// ),
// const SizedBox(width: 8),
// Container(
// padding: const EdgeInsets.symmetric(
// horizontal: 8,
// vertical: 2,
// ),
// decoration: BoxDecoration(
// color: scheme.onSurface.withValues(alpha: 0.06),
// borderRadius: BorderRadius.circular(999),
// ),
// child: Text(
// '${filteredTabs.length}',
// style: Theme.of(context).textTheme.bodySmall?.copyWith(
// fontWeight: FontWeight.w700,
// ),
// ),
// ),
// ],
// ),
const SizedBox(height: 8),
SizedBox(
-2
View File
@@ -89,7 +89,6 @@ class _PinEntryViewState extends State<PinEntryView> {
final l10n = AppLocalizations.of(context);
if (_isCreateFlow && !_isConfirmStep) {
// First entry of a new PIN — stash it, then ask for confirmation.
final entered = _digits;
setState(() {
@@ -127,7 +126,6 @@ class _PinEntryViewState extends State<PinEntryView> {
return;
}
// Unlock flow.
setState(() => _isSubmitting = true);
final ok = await _verify(_digits);
if (!mounted) return;
-2
View File
@@ -87,14 +87,12 @@ class ProductTile extends StatelessWidget {
),
),
// Stock badge
Positioned(
top: 10,
right: 10,
child: _StockBadge(product: product),
),
// Out of stock overlay
if (outOfStock)
Center(
child: Container(