You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Por favor, defina a largura e altura do protótipo de design antes de usar (em pixels).
45
45
Certifique-se de definir as dimensões na paginal inicial do MaterialApp (ou seja, no arquivo de entrada, defina apenas uma vez) para garantir que o tamanho de ajuste seja o mesmo antes de cada uso:
46
46
47
+
The first way:
47
48
```dart
48
49
void main() => runApp(MyApp());
49
50
50
51
class MyApp extends StatelessWidget {
51
52
@override
52
53
Widget build(BuildContext context) {
53
-
//Preencha o tamanho da tela do dispositivo no protótipo de design , in dp
54
+
//Set the fit size (fill in the screen size of the device in the design,in dp)
54
55
return ScreenUtilInit(
55
56
designSize: Size(360, 690),
56
57
allowFontScaling: false,
@@ -61,6 +62,24 @@ class MyApp extends StatelessWidget {
61
62
}
62
63
}
63
64
```
65
+
The second way:
66
+
```
67
+
class MyApp extends StatelessWidget {
68
+
@override
69
+
Widget build(BuildContext context) {
70
+
//Set the fit size (fill in the screen size of the device in the design) If the design is based on the size of the 360*690
0 commit comments