main.dart 554 B

1234567891011121314151617181920212223242526
  1. import 'package:crab_ui/contact.dart';
  2. import 'package:flutter/material.dart';
  3. import 'home_page.dart';
  4. import 'email.dart';
  5. void main() {
  6. runApp(const HyM());
  7. }
  8. class HyM extends StatelessWidget {
  9. const HyM({super.key});
  10. @override
  11. Widget build(BuildContext context) {
  12. return MaterialApp(
  13. debugShowCheckedModeBanner: false,
  14. theme: ThemeData.dark(),
  15. title: 'HyM',
  16. home: HomeScreen(),
  17. routes: {
  18. "/email": (context) => EmailPage(),
  19. "/contacts": (context) => ContactsPage(),
  20. },
  21. );
  22. }
  23. }