main.dart 808 B

12345678910111213141516171819202122232425262728293031323334
  1. import 'package:crab_ui/contact.dart';
  2. import 'package:flutter/material.dart';
  3. import 'home_page.dart';
  4. // import 'api_service.dart';
  5. import 'login.dart';
  6. import 'email.dart';
  7. void main() {
  8. WidgetsFlutterBinding.ensureInitialized();
  9. // debugPaintSizeEnabled = true;
  10. runApp( HyM());
  11. }
  12. class HyM extends StatelessWidget {
  13. final AuthService _authService = AuthService();
  14. HyM({super.key});
  15. @override
  16. Widget build(BuildContext context) {
  17. return MaterialApp(
  18. debugShowCheckedModeBanner: false,
  19. theme: ThemeData.light(),
  20. title: 'HyM',
  21. // home: HomeScreen(),
  22. home: HomeScreen(),
  23. routes: {
  24. "/login": (context) => const LoginPage(),
  25. // "/email": (context) => EmailPage(),
  26. "/contacts": (context) => ContactsPage(),
  27. },
  28. );
  29. }
  30. }