File tree Expand file tree Collapse file tree 2 files changed +64
-4
lines changed Expand file tree Collapse file tree 2 files changed +64
-4
lines changed Original file line number Diff line number Diff line change 1+ ## 开发者如何参与完善控件
2+ > 开发者可以选择只完善控件Demo示例,或者喜欢翻译的可以只完善控件文档,也可选择两者
3+
4+ * 1 . git clone https://github.com/efoxTeam/flutter-ui 拉取项目到本地
5+ * 2 . 打开项目 flutter-ui/lib/config/index.dart,修改里面isPro变量为false,(目的加载本地文件)
6+ * 3 . 完善控件的,如要完善Animate下的AnimationController控件,打开项目 flutter-ui/lib/widget/animate/animationcontroller/demo.dart,在此文件下构建您的demo运行即可看到效果
7+ * 4 . 完善控件文档的,您可打开flutter-ui/docs/widget/animate/animationcontroller/index.md,构建AnimationController控件的说明文档,该文档包括但不限于(控件介绍,控件构造方法,控件属性介绍)
8+ * 5 . 最后将您的代码提Pull request到test分支,我们会定期merge发版
9+
10+ ## PR规范
11+ 1 . 确保一个PR只做一个issues或一个组件分享,或一个特殊的主题分享等,即命题唯一
12+ 2 . 可通过pull request提交到test-pr分支,指定给任意管理员。
13+ 3 . 明确标题性质,是issues还是改进的内容,描述背景,完善的实现方案或关键的解决要素,梳理对用户的影响与风险,罗列合并的内容与变更日志,相关后续规划
14+ * 模板
15+ ```
16+ # 标题: 如关于xxx问题的解决方案、关于xxx组件的分享
17+ # 性质: 可选择issues/share/others
18+ # 问题背景描述
19+ 在xxx场景下,遇到了以下几点问题
20+ 1,问题1...
21+ 2,问题2...
22+ ...
23+ # 解决方案:基于xxx问题,提供以下解决方案
24+ 1,在xxx地方进行优化
25+ 2,在xxx代码中进行优化
26+ ...
27+ # 用户影响与风险
28+ 1,xxx变动会影响xxx功能
29+ 2,预期可能会存在xxx问题
30+ 3,是否会隐藏哪些其它风险等
31+ # 清单
32+ 1,xxx文档
33+ 2,罗列相关变动的文件
34+ 3,代码视频或效果展示等内容
35+ 4,change log等
36+ # 后续规划
37+ 1,xxx阶段实现xxx功能
38+ 2,其它预期规划。
39+ ```
40+ ## 如何提交PR
41+ * fork项目到自己仓库
42+ * git clone (您的仓库地址)到本地
43+ * 建立上游连接
44+ git remote add upstream https://github.com/efoxTeam/flutter-ui
45+ * 创建开发分支(非必须)
46+ git checkout -b test
47+ * 修改提交代码
48+ git status
49+ git add .
50+ git commit -m 'feat: 增加了什么什么什么'
51+ git push origin test
52+ * 同步代码
53+ git fetch upstream
54+ git checkout test
55+ git merge upstream/test
56+ git push origin test
57+ * 提交PR
58+ 到自己github仓库对应fork的项目下new pull request
59+
Original file line number Diff line number Diff line change @@ -63,15 +63,16 @@ class IndexState extends State<Index> {
6363 void init () async {
6464 this ._bodyList.length = 0 ;
6565 String mdText = await this .getMdFile (this .mdUrl);
66- print ('mdText.length ======================================== ${mdText .length }' );
6766 if (mdText.length > 30 ) {
6867 this
6968 ._bodyList
7069 .add (await MarkDownComp .Index (mdText));
7170 // demo
72- this .demoChild.forEach ((Widget item) {
73- this ._bodyList.add (ExampleComp .Index (child: item));
74- });
71+ if (this .demoChild != null && this .demoChild.length > 0 ) {
72+ this .demoChild.forEach ((Widget item) {
73+ this ._bodyList.add (ExampleComp .Index (child: item));
74+ });
75+ }
7576 } else {
7677 this ._bodyList.add (UpdatingComp .Index ());
7778 }
You can’t perform that action at this time.
0 commit comments