From 81ae293858197313fd3b53162ef35256cabd18b9 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Sat, 6 Dec 2025 18:37:16 +0100 Subject: [PATCH] feat: add core UI components, login screen, and live TV tab --- lib/core/widgets/components/ui_components.dart | 8 ++++---- lib/features/auth/screens/login_screen.dart | 2 +- lib/features/iptv/widgets/live_tv_tab.dart | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/core/widgets/components/ui_components.dart b/lib/core/widgets/components/ui_components.dart index 8350760..929ac48 100644 --- a/lib/core/widgets/components/ui_components.dart +++ b/lib/core/widgets/components/ui_components.dart @@ -218,10 +218,10 @@ class _ShimmerLoadingState extends State gradient: LinearGradient( begin: Alignment(_animation.value - 1, 0), end: Alignment(_animation.value + 1, 0), - colors: const [ - AppColors.surfaceVariant, + colors: [ + AppColors.surface.withOpacity(0.5), AppColors.surface, - AppColors.surfaceVariant, + AppColors.surface.withOpacity(0.5), ], ), ), @@ -280,7 +280,7 @@ class CategoryChip extends StatelessWidget { return Material( color: isSelected ? AppColors.primary.withOpacity(0.2) - : AppColors.surfaceVariant, + : AppColors.surface, borderRadius: BorderRadius.circular(AppTheme.radiusFull), child: InkWell( onTap: onTap, diff --git a/lib/features/auth/screens/login_screen.dart b/lib/features/auth/screens/login_screen.dart index dabf715..65e2037 100644 --- a/lib/features/auth/screens/login_screen.dart +++ b/lib/features/auth/screens/login_screen.dart @@ -145,7 +145,7 @@ class _LoginScreenState extends ConsumerState { labelText: 'Username', prefixIcon: const Icon(Icons.person_outline), fillColor: AppColors.surface, - hoverColor: AppColors.surfaceLight, + hoverColor: AppColors.surface.withOpacity(0.8), ), validator: (value) { if (value == null || value.trim().isEmpty) { diff --git a/lib/features/iptv/widgets/live_tv_tab.dart b/lib/features/iptv/widgets/live_tv_tab.dart index 698de21..07dd254 100644 --- a/lib/features/iptv/widgets/live_tv_tab.dart +++ b/lib/features/iptv/widgets/live_tv_tab.dart @@ -153,7 +153,7 @@ class _LiveTVTabState extends ConsumerState : null, isDense: true, filled: true, - fillColor: AppColors.surfaceVariant, + fillColor: AppColors.surface.withOpacity(0.5), border: OutlineInputBorder( borderRadius: BorderRadius.circular(8), borderSide: BorderSide.none, @@ -238,7 +238,7 @@ class _LiveTVTabState extends ConsumerState begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [ - AppColors.surfaceLight, + AppColors.surface.withOpacity(0.8), AppColors.surface, ], ), @@ -313,7 +313,7 @@ class _LiveTVTabState extends ConsumerState Container( width: double.infinity, padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), - color: AppColors.surfaceVariant.withOpacity(0.5), + color: AppColors.surface.withOpacity(0.5), child: Row( children: [ IconButton(