import 'package:flutter/material.dart'; // Import Material package which contains core widgets
import 'login_screen.dart'; // Import the login screen we'll create
import 'gallery_screen.dart'; // Import the gallery screen we'll create

void main() {
  runApp(const MyApp()); // Entry point of the Flutter application
}

class MyApp extends StatelessWidget {
  // StatelessWidget since this widget doesn't maintain any state
  const MyApp({super.key}); // Constructor with optional key parameter

  @override
  Widget build(BuildContext context) {
    // Build method defines the widget's UI
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Login Gallery', // Title of the application
      theme: ThemeData(
        // Define the app's theme
        primarySwatch: Colors.blue, // Set primary color to blue
        visualDensity:
            VisualDensity
                .adaptivePlatformDensity, // Adapt density based on platform
      ),
      initialRoute: '/',
      routes: {
        '/': (context) => const LoginScreen(),
        '/gallery': (context) => const GalleryScreen(),
      },
    );
  }
}
