import 'package:flutter/material.dart'; import 'package:media3_exoplayer_creator/screens/video_screen.dart'; // Import other files as needed void main() { runApp(MyApp()); } class MyApp extends StatefulWidget { const MyApp({super.key}); @override State createState() => _MyAppState(); } class _MyAppState extends State { bool _isDarkMode = false; void _toggleTheme() { setState(() { _isDarkMode = !_isDarkMode; }); } @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, theme: _isDarkMode ? ThemeData.dark().copyWith( primaryColor: Colors.blue, colorScheme: ColorScheme.fromSwatch( primarySwatch: Colors.lightBlue) .copyWith(secondary: Colors.blue), appBarTheme: const AppBarTheme( color: Colors.blue, titleTextStyle: TextStyle( color: Colors.white, fontSize: 20, fontWeight: FontWeight.bold, ), ), textButtonTheme: TextButtonThemeData( style: TextButton.styleFrom( foregroundColor: Colors.blue, ), ), inputDecorationTheme: InputDecorationTheme( filled: true, fillColor: Colors.white, border: OutlineInputBorder( borderRadius: BorderRadius.circular(8), borderSide: BorderSide( color: Colors.blue, width: 2, ), ), focusedBorder: OutlineInputBorder( borderRadius: BorderRadius.circular(8), borderSide: BorderSide( color: Colors.blue, width: 2, ), ), ), ) : ThemeData.light().copyWith( primaryColor: Colors.blue, scaffoldBackgroundColor: Colors.white, colorScheme: ColorScheme.fromSwatch( primarySwatch: Colors.lightBlue) .copyWith(secondary: Colors.blue), appBarTheme: const AppBarTheme( color: Colors.blue, titleTextStyle: TextStyle( color: Colors.white, fontSize: 20, fontWeight: FontWeight.bold, ), ), textButtonTheme: TextButtonThemeData( style: TextButton.styleFrom( foregroundColor: Colors.blue, ), ), inputDecorationTheme: InputDecorationTheme( filled: true, fillColor: Colors.white, border: OutlineInputBorder( borderRadius: BorderRadius.circular(8), borderSide: BorderSide( color: Colors.blue, width: 2, ), ), focusedBorder: OutlineInputBorder( borderRadius: BorderRadius.circular(8), borderSide: BorderSide( color: Colors.blue, width: 2, ), ), ), ), home: Scaffold( body: VideoScreen(), ), ); } }