main.dart 621 B

123456789101112131415161718192021222324252627
  1. import 'package:flutter/material.dart';
  2. import 'about_page.dart';
  3. import 'remove_metadata_page.dart';
  4. void main() {
  5. runApp(const MyApp());
  6. }
  7. class MyApp extends StatelessWidget {
  8. const MyApp({super.key});
  9. @override
  10. Widget build(BuildContext context) {
  11. return MaterialApp(
  12. title: 'Image Meta Cleaner',
  13. theme: ThemeData(
  14. primarySwatch: Colors.blue,
  15. ),
  16. initialRoute: '/',
  17. routes: {
  18. '/': (context) => const RemoveMetadataPage(),
  19. '/about': (context) => const AboutPage(), // Add this route for the About page
  20. },
  21. );
  22. }
  23. }