main.dart 536 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import 'package:hengyi/home/home.dart';
  4. void main() {
  5. runApp(MyApp());
  6. }
  7. class MyApp extends StatelessWidget {
  8. const MyApp({super.key});
  9. @override
  10. Widget build(BuildContext context) {
  11. return ScreenUtilInit(
  12. designSize: const Size(1280, 1920),
  13. builder: (BuildContext context, Widget? child) {
  14. return MaterialApp(
  15. title: "夫为",
  16. home: HomePage(),
  17. );
  18. },
  19. );
  20. }
  21. }