Skip to content
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

这样设定,是否影响到第三方库? #2

Open
Natuka opened this issue Jun 24, 2019 · 1 comment
Open

这样设定,是否影响到第三方库? #2

Natuka opened this issue Jun 24, 2019 · 1 comment

Comments

@Natuka
Copy link

Natuka commented Jun 24, 2019

Step 1:
dependencies:
  auto_size:
    git:
      url: git://github.com/flutterchina/auto_size.git  
      
Step 2:
flutter packages get  
  
Step 3import 'package:auto_size/auto_size.dart';

/// 默认设计稿尺寸360*640,单位dp。
void main() => runAutoSizeApp(MyApp());

void main() => runAutoSizeApp(MyApp(), width: designWidth, height: designeight);
@Sky24n
Copy link
Member

Sky24n commented Jun 24, 2019

如果用了系统屏幕尺寸就会有影响。没用就没事
MediaQuery.of(context).size;
MediaQueryData.fromWindow(ui.window).size;

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

2 participants