feat: Add XtremFlow color palette for light/dark themes and initial Flutter web HTML with a themed loading screen.

This commit is contained in:
Michael committed 2025-12-06 17:20:07 +01:00
1 parent b56ecdb145
commit 0fc4a15f40
8 files changed
+1133 -41

No files matched your search

+5 -2
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'core/router/app_router.dart';
import 'core/theme/app_theme.dart';
import 'core/providers/theme_provider.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
@@ -14,14 +15,16 @@ class MyApp extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final router = ref.watch(routerProvider);
final themeState = ref.watch(themeProvider);
return MaterialApp.router(
title: 'XtremFlow IPTV',
debugShowCheckedModeBanner: false,
theme: AppTheme.darkTheme,
theme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme,
themeMode: ThemeMode.dark, // Force dark mode for premium look
themeMode: themeState.themeMode,
routerConfig: router,
);
}
}