main.dart 577 B

12345678910111213141516171819202122232425
  1. import 'package:flutter/material.dart';
  2. import 'file_encryptor_screen.dart';
  3. import 'about_screen.dart';
  4. void main() {
  5. runApp(MyApp());
  6. }
  7. class MyApp extends StatelessWidget {
  8. @override
  9. Widget build(BuildContext context) {
  10. return MaterialApp(
  11. title: 'Sun Crypt',
  12. theme: ThemeData(
  13. primarySwatch: Colors.blue,
  14. ),
  15. initialRoute: '/',
  16. routes: {
  17. '/': (context) => FileEncryptorScreen(),
  18. '/about': (context) => const AboutScreen(), // Add this route for the About Screen
  19. },
  20. );
  21. }
  22. }