Showing
3 changed files
with
9 additions
and
0 deletions
| @@ -202,6 +202,9 @@ class _HomePageState extends State<HomePage> { | @@ -202,6 +202,9 @@ class _HomePageState extends State<HomePage> { | ||
| 202 | 0.5.sh //50% of screen height | 202 | 0.5.sh //50% of screen height |
| 203 | 20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight) | 203 | 20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight) |
| 204 | 20.horizontalSpace // SizedBox(height: 20 * scaleWidth) | 204 | 20.horizontalSpace // SizedBox(height: 20 * scaleWidth) |
| 205 | + const RPadding.all(8) // Padding.all(8.r) - take advantage of const key word | ||
| 206 | + REdgeInsts.all(8) // EdgeInsets.all(8.r) | ||
| 207 | + EdgeInsets.only(left:8,right:8).r // EdgeInsets.only(left:8.r,right:8.r). | ||
| 205 | ``` | 208 | ``` |
| 206 | 209 | ||
| 207 | #### Adapt screen size: | 210 | #### Adapt screen size: |
| @@ -161,6 +161,9 @@ class _HomePageState extends State<HomePage> { | @@ -161,6 +161,9 @@ class _HomePageState extends State<HomePage> { | ||
| 161 | 0.5.sh //屏幕高度的50% | 161 | 0.5.sh //屏幕高度的50% |
| 162 | 20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight) | 162 | 20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight) |
| 163 | 20.horizontalSpace // SizedBox(height: 20 * scaleWidth) | 163 | 20.horizontalSpace // SizedBox(height: 20 * scaleWidth) |
| 164 | + const RPadding.all(8) // Padding.all(8.r) - take advantage of const key word | ||
| 165 | + REdgeInsts.all(8) // EdgeInsets.all(8.r) | ||
| 166 | + EdgeInsets.only(left:8,right:8).r // EdgeInsets.only(left:8.r,right:8.r). | ||
| 164 | 167 | ||
| 165 | ``` | 168 | ``` |
| 166 | 169 |
| @@ -151,6 +151,9 @@ class _HomePageState extends State<HomePage> { | @@ -151,6 +151,9 @@ class _HomePageState extends State<HomePage> { | ||
| 151 | 0.5.sh //50% altura da tela | 151 | 0.5.sh //50% altura da tela |
| 152 | 20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight) | 152 | 20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight) |
| 153 | 20.horizontalSpace // SizedBox(height: 20 * scaleWidth) | 153 | 20.horizontalSpace // SizedBox(height: 20 * scaleWidth) |
| 154 | + const RPadding.all(8) // Padding.all(8.r) - take advantage of const key word | ||
| 155 | + REdgeInsts.all(8) // EdgeInsets.all(8.r) | ||
| 156 | + EdgeInsets.only(left:8,right:8).r // EdgeInsets.only(left:8.r,right:8.r). | ||
| 154 | ``` | 157 | ``` |
| 155 | 158 | ||
| 156 | #### Adaptar o tamanho da tela: | 159 | #### Adaptar o tamanho da tela: |
-
Please register or login to post a comment