Skip to content

Flutter屏幕适配方案 / Flutter screen adaptation solution

License

Notifications You must be signed in to change notification settings

hwh97/flutter_screen_adapter

Repository files navigation

Features

Flutter屏幕适配方案 / Flutter screen adaptation solution

Screenshot

screenshot screenshot
screenshot screenshot

Usage

Step1:

Import package

flutter_screen_adapter:
    git:
        url: [email protected]:hwh97/flutter_screen_adapter.git 

Step2:

Add builder to MaterialApp

MaterialApp(
    builder: (context, child) => screenAdapterBuilder(
        child: child,
        designSize: const Size(375, 812),
        tabletDesignSize: const Size(768, 1024),
    ),
)

Note

This plugin uses width >= 550 to get tablet or not. Feel free to pr if you have a better way.

Thanks

https://juejin.cn/post/6844903822188363789

https://pub.flutter-io.cn/packages/responsive_framework

About

Flutter屏幕适配方案 / Flutter screen adaptation solution

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published