File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 1+ # 字体
2+
3+ 不修改默认配置的显著问题是,由于字体加载过慢,严重拖慢整个项目的加载速度。
4+
5+ <!--
6+ 此处放一个加载情况截图。
7+ -->
8+
9+ ## 参考资料
10+
11+ 设计语言:
12+ - https://www.mdui.org/design/style/typography.html#typography-typeface
13+
14+ 配置:
15+ - https://www.flutterbeads.com/change-font-family-flutter/
16+ - https://www.youtube.com/watch?v=BUqKuZ8xyik
Original file line number Diff line number Diff line change 1+ # 导航栏
2+
3+ ## 底部导航栏
4+
5+ ` BottomNavigationBarItem ` 类要求` title ` 属性不再使用,更换为` label ` 。
6+ 大部分教程文档没有对此更新,注意参考资料附上的官方文档和项目内的代码实现。
Original file line number Diff line number Diff line change 1+ # 部署
2+
3+ - 路径设置:由于` url_strategy ` 的引入,` <base> ` 标签不可以设置相对路径。
4+ - 云端部署:设置为根目录,云端部署在对象存储的存储桶根目录,云开发静态网站托管不放在根目录会异常。
5+ - 运行服务:编译在根目录下进行,本地运行` python -m http.server 8000 ` 必须在build/web/目录下启动。
6+
7+ ## 压缩包体积
8+
9+ 基于` qlevar_router ` 的middleware机制。
10+
11+ 详见:https://medium.com/@SchabanBo/reduce-your-flutter-web-app-loading-time-8018d8f442
Original file line number Diff line number Diff line change @@ -42,4 +42,7 @@ void main() {
4242
4343我们希望Flutter页面的表现尽可能符合[ RESTful标准] ( https://restfulapi.net ) 。
4444
45+
4546我们使用[ ` fluro ` ] ( https://pub.dev/packages/fluro ) 。
47+
48+ [ ` qlevar_router ` ] ( https://pub.dev/packages/qlevar_router ) 作为备选。
You can’t perform that action at this time.
0 commit comments