v2.56 — UI/Design-Rework: Melo Dark Fusion (neue Startseite, 2-stufige Einstellungen, Design-System)

- Design-System: MeloDesignTokens ThemeExtension, Outfit-Font, Farben #0B0B10/#14141C/#1C1C26
- Akzentfarbe-User-Einstellung behalten (MeloTheme.akzentNotifier), Gradient aus Akzent
- Startseite: Hero-Weiterhören-Karte mit Cover, Titel, Glow-Play-Button
- 2-stufige Einstellungen: Standard + Expertenmodus (SharedPreferences Key 'experten_modus')
- Komponenten: Pill-Buttons (radius 999), Card-Radius 20, Glow-Shadow, PressScale-Widget
- Login: Gradient-Button mit Akzent-Glow
- 199 Tests grün (194 bestehend + 5 neu): ThemeExtension, Expertenmodus, Akzent, PressScale, Hero
- flutter analyze lib/ + test/ = 0 Issues
- KEIN APK
This commit is contained in:
Dustin
2026-08-06 19:56:02 +02:00
parent 85615d253c
commit 79b15a3cb8
14 changed files with 1078 additions and 364 deletions
+60 -40
View File
@@ -6,8 +6,7 @@ import '../utils/user_effekte.dart';
import '../config/app_config.dart';
import 'home_screen.dart';
/// Melo Login-Screen Schwarz+Rot Design
/// Baka-Auth + Navidrome-Credentials
/// Melo Login-Screen Melo Dark Fusion Design
class LoginScreen extends StatefulWidget {
const LoginScreen({super.key});
@@ -74,9 +73,7 @@ class _LoginScreenState extends State<LoginScreen>
if (result.erfolg) {
_setzeStatus('✅ Login erfolgreich!', ok: true);
// Per-User-Akzent (überschreibbar in den Einstellungen) + Begrüßung
await UserEffekt.anwenden(user);
// Navidrome automatisch mit gleichen Credentials syncen
await NavidromeService().speichereZugangsdaten(
AppConfig.navidromeUrl, user, pass);
await Future.delayed(const Duration(milliseconds: 600));
@@ -110,6 +107,8 @@ class _LoginScreenState extends State<LoginScreen>
}
Widget _buildLogin() {
final akzent = MeloTheme.akzent;
return Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -123,11 +122,11 @@ class _LoginScreenState extends State<LoginScreen>
padding: const EdgeInsets.all(24),
decoration: BoxDecoration(
color: MeloTheme.dunkel1,
borderRadius: BorderRadius.circular(20),
borderRadius: BorderRadius.circular(24),
border: Border.all(color: MeloTheme.dunkel2),
boxShadow: [
BoxShadow(
color: MeloTheme.rot.withValues(alpha: 0.15),
color: akzent.withValues(alpha: 0.15),
blurRadius: 30,
offset: const Offset(0, 8),
),
@@ -142,6 +141,7 @@ class _LoginScreenState extends State<LoginScreen>
color: Colors.white,
fontSize: 20,
fontWeight: FontWeight.w700,
letterSpacing: -0.5,
),
),
const SizedBox(height: 4),
@@ -172,37 +172,55 @@ class _LoginScreenState extends State<LoginScreen>
),
const SizedBox(height: 24),
// Login Button
// Login Button Gradient Pill
SizedBox(
width: double.infinity,
height: 50,
child: ElevatedButton(
onPressed: _ladt ? null : _login,
style: ElevatedButton.styleFrom(
backgroundColor: MeloTheme.rot,
disabledBackgroundColor: MeloTheme.dunkel2,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(14),
child: DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(999),
gradient: LinearGradient(
colors: [akzent, Color.lerp(akzent, Colors.black, 0.4)!],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
elevation: 0,
boxShadow: [
BoxShadow(
color: akzent.withValues(alpha: 0.3),
blurRadius: 16,
offset: const Offset(0, 4),
),
],
),
child: _ladt
? const SizedBox(
width: 22,
height: 22,
child: CircularProgressIndicator(
strokeWidth: 2.5,
color: Colors.white,
child: ElevatedButton(
onPressed: _ladt ? null : _login,
style: ElevatedButton.styleFrom(
backgroundColor: Colors.transparent,
disabledBackgroundColor: Colors.transparent,
shadowColor: Colors.transparent,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(999),
),
elevation: 0,
),
child: _ladt
? const SizedBox(
width: 22,
height: 22,
child: CircularProgressIndicator(
strokeWidth: 2.5,
color: Colors.white,
),
)
: const Text(
'Anmelden',
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w600,
),
),
)
: const Text(
'Anmelden',
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w600,
),
),
),
),
),
@@ -235,6 +253,8 @@ class _LoginScreenState extends State<LoginScreen>
}
Widget _logoBereich({bool klein = false}) {
final akzent = MeloTheme.akzent;
return Column(
children: [
// Icon
@@ -243,14 +263,14 @@ class _LoginScreenState extends State<LoginScreen>
height: klein ? 64 : 80,
decoration: BoxDecoration(
shape: BoxShape.circle,
gradient: const LinearGradient(
colors: [Color(0xFFCC0000), Color(0xFF660000)],
gradient: LinearGradient(
colors: [akzent, Color.lerp(akzent, Colors.black, 0.5)!],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
boxShadow: [
BoxShadow(
color: MeloTheme.rot.withValues(alpha: 0.4),
color: akzent.withValues(alpha: 0.4),
blurRadius: 24,
offset: const Offset(0, 6),
),
@@ -277,7 +297,7 @@ class _LoginScreenState extends State<LoginScreen>
Text(
'Musik. Für immer.',
style: TextStyle(
color: MeloTheme.rot.withValues(alpha: 0.8),
color: akzent.withValues(alpha: 0.8),
fontSize: 13,
letterSpacing: 2,
fontWeight: FontWeight.w400,
@@ -295,7 +315,7 @@ class _LoginScreenState extends State<LoginScreen>
color: _statusOk
? const Color(0xFF0D3B1E)
: const Color(0xFF3B0D0D),
borderRadius: BorderRadius.circular(10),
borderRadius: BorderRadius.circular(14),
border: Border.all(
color: _statusOk ? const Color(0xFF2E7D32) : const Color(0xFF7D2E2E),
),
@@ -348,15 +368,15 @@ class _LoginScreenState extends State<LoginScreen>
filled: true,
fillColor: MeloTheme.dunkel2,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderRadius: BorderRadius.circular(14),
borderSide: BorderSide.none,
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: MeloTheme.rot, width: 1.5),
borderRadius: BorderRadius.circular(14),
borderSide: BorderSide(color: MeloTheme.akzent, width: 1.5),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderRadius: BorderRadius.circular(14),
borderSide: const BorderSide(color: MeloTheme.dunkel2),
),
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),