main.dart 634 B

12345678910111213141516171819202122232425262728
  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 'dart:html' as html;
  6. void main() {
  7. WidgetsFlutterBinding.ensureInitialized();
  8. runApp(const HyM());
  9. }
  10. class HyM extends StatelessWidget {
  11. const HyM({super.key});
  12. @override
  13. Widget build(BuildContext context) {
  14. return MaterialApp(
  15. debugShowCheckedModeBanner: false,
  16. theme: ThemeData.light(),
  17. title: 'HyM',
  18. home: HomeScreen(),
  19. routes: {
  20. "/email": (context) => EmailPage(),
  21. "/contacts": (context) => ContactsPage(),
  22. },
  23. );
  24. }
  25. }