Skip to content

Commit 6f4c4a5

Browse files
committed
转移课堂APP笔记到本项目
1 parent e2436d9 commit 6f4c4a5

5 files changed

Lines changed: 36 additions & 0 deletions

File tree

File renamed without changes.

app/font.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

app/navigation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 导航栏
2+
3+
## 底部导航栏
4+
5+
`BottomNavigationBarItem`类要求`title`属性不再使用,更换为`label`
6+
大部分教程文档没有对此更新,注意参考资料附上的官方文档和项目内的代码实现。

platform_specific/web/deploy.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

platform_specific/web/routers.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)作为备选。

0 commit comments

Comments
 (0)