diff --git a/lib/theme.dart b/lib/theme.dart index 8a1cdf7..9f17aff 100644 --- a/lib/theme.dart +++ b/lib/theme.dart @@ -1,9 +1,5 @@ import 'package:flutter/material.dart'; -// --------------------------------------------------------------------------- -// Shared design tokens -// --------------------------------------------------------------------------- - class AppRadii { static const double sm = 10; static const double md = 14; @@ -19,10 +15,6 @@ class AppSpacing { static const double xl = 24; } -// --------------------------------------------------------------------------- -// Dark theme — refined violet palette -// --------------------------------------------------------------------------- - const _violet = Color(0xFF8B5CF6); const _violetSoft = Color(0xFFB39DFF); const _bg = Color(0xFF111014); @@ -261,10 +253,6 @@ final ThemeData darkTheme = ThemeData( ), ); -// --------------------------------------------------------------------------- -// Neo-brutalist dark theme — punchy, high-contrast alternative -// --------------------------------------------------------------------------- - const _nbBg = Color(0xFF0C0C0E); const _nbSurface = Color(0xFF1C1C20); const _nbYellow = Color(0xFFFFD60A); @@ -494,14 +482,8 @@ final ThemeData lightTheme = ThemeData( letterSpacing: -0.3, color: Color(0xFF1A1A1A), ), - iconTheme: const IconThemeData( - color: Color(0xFF5C5C5C), - size: 22, - ), - actionsIconTheme: const IconThemeData( - color: Color(0xFF5C5C5C), - size: 22, - ), + iconTheme: const IconThemeData(color: Color(0xFF5C5C5C), size: 22), + actionsIconTheme: const IconThemeData(color: Color(0xFF5C5C5C), size: 22), ), iconButtonTheme: IconButtonThemeData( @@ -629,10 +611,7 @@ final ThemeData lightTheme = ThemeData( fontSize: 19, fontWeight: FontWeight.w800, ), - contentTextStyle: const TextStyle( - color: Color(0xFF5C5C5C), - height: 1.4, - ), + contentTextStyle: const TextStyle(color: Color(0xFF5C5C5C), height: 1.4), ), floatingActionButtonTheme: const FloatingActionButtonThemeData( @@ -711,16 +690,9 @@ final ThemeData lightTheme = ThemeData( color: Color(0xFF1A1A1A), fontWeight: FontWeight.w700, ), - bodyLarge: TextStyle( - color: Color(0xFF5C5C5C), - fontSize: 16, - height: 1.5, - ), + bodyLarge: TextStyle(color: Color(0xFF5C5C5C), fontSize: 16, height: 1.5), bodyMedium: TextStyle(color: Color(0xFF757575), height: 1.4), - bodySmall: TextStyle( - color: Color(0xFF9E9E9E), - height: 1.3, - ), + bodySmall: TextStyle(color: Color(0xFF9E9E9E), height: 1.3), labelLarge: TextStyle( color: Color(0xFF1A1A1A), fontWeight: FontWeight.w700, @@ -728,10 +700,6 @@ final ThemeData lightTheme = ThemeData( ), ); -// --------------------------------------------------------------------------- -// Ugly theme — intentionally repulsive -// --------------------------------------------------------------------------- - const _uglyFg = Color(0xFFFFF700); const _uglyBg = Color(0xFF00FFFF); const _uglySurface = Color(0xFFFF00FF); diff --git a/lib/views/bar_screen_view.dart b/lib/views/bar_screen_view.dart index fcb1aa3..195a9c9 100644 --- a/lib/views/bar_screen_view.dart +++ b/lib/views/bar_screen_view.dart @@ -199,9 +199,6 @@ class _BarScreenViewState extends State { } } -// --------------------------------------------------------------------------- -// Product grid -// --------------------------------------------------------------------------- class _ProductGrid extends StatelessWidget { final List products; final int rows; @@ -353,10 +350,6 @@ class _ProductGrid extends StatelessWidget { } } -// --------------------------------------------------------------------------- -// Tab panel -// --------------------------------------------------------------------------- - class _TabPanel extends StatefulWidget { final List 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( diff --git a/lib/views/pin_lock_view.dart b/lib/views/pin_lock_view.dart index fd7590c..68b1c40 100644 --- a/lib/views/pin_lock_view.dart +++ b/lib/views/pin_lock_view.dart @@ -89,7 +89,6 @@ class _PinEntryViewState extends State { 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 { return; } - // Unlock flow. setState(() => _isSubmitting = true); final ok = await _verify(_digits); if (!mounted) return; diff --git a/lib/views/widgets/product_tile.dart b/lib/views/widgets/product_tile.dart index 2ac3cd1..8622fd3 100644 --- a/lib/views/widgets/product_tile.dart +++ b/lib/views/widgets/product_tile.dart @@ -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( diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index a4fae31..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1,11 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - - - -void main() { -}