李卓原

0.4.0优化字体适配方法

@@ -28,6 +28,7 @@ class MyHomePage extends StatefulWidget { @@ -28,6 +28,7 @@ class MyHomePage extends StatefulWidget {
28 } 28 }
29 29
30 class _MyHomePageState extends State<MyHomePage> { 30 class _MyHomePageState extends State<MyHomePage> {
  31 +
31 @override 32 @override
32 Widget build(BuildContext context) { 33 Widget build(BuildContext context) {
33 ///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 iPhone6 ​​(iPhone6 ​​750*1334) 34 ///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 iPhone6 ​​(iPhone6 ​​750*1334)
@@ -28,6 +28,7 @@ class MyHomePage extends StatefulWidget { @@ -28,6 +28,7 @@ class MyHomePage extends StatefulWidget {
28 } 28 }
29 29
30 class _MyHomePageState extends State<MyHomePage> { 30 class _MyHomePageState extends State<MyHomePage> {
  31 +
31 @override 32 @override
32 Widget build(BuildContext context) { 33 Widget build(BuildContext context) {
33 //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) 34 //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334)