main.dart 710 B

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