9c504d2c3d
Features: - Frontend Flutter avec thème néon cyberpunk - Backend FastAPI avec streaming YouTube - Base de données PostgreSQL + Redis - Authentification JWT complète - Recherche multi-source (DB + YouTube) - Playlists CRUD avec drag & drop - Queue management - Settings avec audio quality - Interface adaptative (Desktop + Mobile) Tech Stack: - Frontend: Flutter 3.2+, Riverpod - Backend: Python 3.11+, FastAPI - Database: PostgreSQL 15+ - Cache: Redis 7+ - Streaming: yt-dlp + FFmpeg 🚀 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
42 lines
1.0 KiB
Dart
42 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'core/theme/app_theme.dart';
|
|
import 'presentation/adaptive/adaptive_layout.dart';
|
|
|
|
void main() {
|
|
// Ensure Flutter bindings are initialized
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
// Set preferred orientations
|
|
SystemChrome.setPreferredOrientations([
|
|
DeviceOrientation.portraitUp,
|
|
DeviceOrientation.portraitDown,
|
|
DeviceOrientation.landscapeLeft,
|
|
DeviceOrientation.landscapeRight,
|
|
]);
|
|
|
|
runApp(
|
|
const ProviderScope(
|
|
child: SpotifyLe2App(),
|
|
),
|
|
);
|
|
}
|
|
|
|
class SpotifyLe2App extends StatelessWidget {
|
|
const SpotifyLe2App({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Spotify Le 2',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: AppTheme.lightTheme,
|
|
darkTheme: AppTheme.darkTheme,
|
|
themeMode: ThemeMode.dark, // Always dark for neon cyberpunk
|
|
home: const AdaptiveLayout(),
|
|
);
|
|
}
|
|
}
|