- 博客(12)
- 收藏
- 关注
原创 SafeArea
这里首先根据用户传进的参数判断是否增加对应边的填充物. 如果需要填充则会返回相应的填充间距. 在取得间距后, 如果用户有传最小的 minimum 值. 那么最终结果在取决于 minimum 和间距, 二者谁大则最终会返回相应的结果. 至此, SafeArea 也就完成了相应的间距填充, 维护了跨平台多设备的ui一致性., 在其中加入 padding . 保证多端多设备中展示不受影响. 同时, 这样操作也可以保证在多数情况下. 跨平台多端设备ui保持一致.SafeArea 用于。
2023-04-07 10:32:08
412
原创 The argument type ‘Color‘ can‘t be assigned to the parameter type ‘MaterialS
The argument type 'Color' can't be assigned to the parameter type 'MaterialS
2022-11-03 09:01:46
1308
原创 items.every((BottomNavigationBarItem item) => item.label != null)
BottomNavigationBarItem里面title用不了,要使用label。并且label值不能为空。
2022-10-31 15:19:12
391
原创 Navigator operation requested with a context that does not include a Navigator.
跳转页面
2022-10-31 15:10:09
241
原创 小程序[ pages/index/index.json.json 文件错误] pages/index/index.json: Empty file is NOT a valid json file
错误改正index.json中的{ }被删了重新加上就可以
2022-04-29 19:38:31
10153
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人