Skip to content

我设计稿是横屏640x360亮出来的高度是31,使用31.h的时候打印出来是60该如何设置 #602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kbhao opened this issue Apr 29, 2025 · 0 comments

Comments

@kbhao
Copy link

kbhao commented Apr 29, 2025

我设计稿是横屏640x360亮出来的高度是31,使用31.h的时候打印出来是60该如何设置

ScreenUtilInit(
designSize: const Size(640, 360),

    minTextAdapt: true,
    splitScreenMode: true,
    builder: (context, child) {
      return GetMaterialApp(
        themeMode: ThemeMode.system,
        title: "Tiwee",
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          textTheme: GoogleFonts.soraTextTheme(),
          scaffoldBackgroundColor: Color(0xff1a1726),
        ),
        home: MyApp(),
      );
    }),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant