Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #400

Closed
wants to merge 38 commits into from
Closed

Fixed #400

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
057e93b
优化function创建的格式,支持 NestedScrollViewHeaderSliversBuilder 回调
zmtzawqlp Mar 30, 2023
ffd1bc8
移除 Sugar.listBuilder 和 Sugar.sliverChildBuilderDelegate
zmtzawqlp Mar 30, 2023
6b01602
为demo 适配最近修改的api
zmtzawqlp Mar 30, 2023
05e575b
修复 example 里面的问题,让它在3.3.0运行正常
zmtzawqlp Mar 31, 2023
a8fdbc3
rollback expression valid 的判断
zmtzawqlp Mar 31, 2023
f06bb7a
1. 删除 Sugar.popMenuButton 2.删除 MapEachDomain 3.增加 Sugar.popMenuButton…
zmtzawqlp Mar 31, 2023
9610044
Merge remote-tracking branch 'origin/rollback_expression_valid' into …
zmtzawqlp Mar 31, 2023
282b724
Merge remote-tracking branch 'origin/fair_function' into fixed
zmtzawqlp Mar 31, 2023
501f82e
CommonPlugin pageName 提供默认的值 #FairKey#
zmtzawqlp Mar 31, 2023
ea6ba24
Merge pull request #11 from zmtzawqlp/common_plugin_default_page_name
zmtzawqlp Mar 31, 2023
3e101b4
修改一下注释描述
zmtzawqlp Mar 31, 2023
fde9d0b
Merge pull request #12 from zmtzawqlp/common_plugin_default_page_name
zmtzawqlp Mar 31, 2023
55aba5e
1. 增加 analysisAllClasses 参数,指定可以分析全部的类 2.类字段区别静态,非静态 3. 支持 const 构造 4…
zmtzawqlp Apr 3, 2023
b84c7ce
analysisAllClasses 修改默认值为 true
zmtzawqlp Apr 3, 2023
c706f13
排除 State
zmtzawqlp Apr 3, 2023
b778e91
增加 function 支持映射
zmtzawqlp Apr 7, 2023
ce53f57
positioned 方法支持对 list 的解析
zmtzawqlp Apr 7, 2023
630e408
SugarMap 和 SugarMapEach 支持其他泛型(不只是 widget)
zmtzawqlp Apr 7, 2023
ae672a8
ast 生成 FairFunction 的时候针对 Widget 做特殊处理
zmtzawqlp Apr 7, 2023
0d13658
增加一些默认的 Flutter function 映射,配套对应的 sugar
zmtzawqlp Apr 7, 2023
f6298cf
拆分 DynamicWidgetBuilder,各部分各司其职
zmtzawqlp Apr 7, 2023
0378c17
类型转换统一返回map,并且将枚举转换成字符串,方便js 中使用
zmtzawqlp Apr 9, 2023
2a27f04
支持常用的Future泛型
zmtzawqlp Apr 9, 2023
b2e11e4
1. 产物文件生成泛型,对基础类型进行支持 2.增加 Sugar.createFuture 和 CompleterPlugin 支持异步回调
zmtzawqlp Apr 10, 2023
34cbf0b
Demo 产物重新生成一下
zmtzawqlp Apr 11, 2023
47c199b
1. 生成 Mapping 增加静态方法,静态属性 2.完善 isWidget 逻辑
zmtzawqlp Apr 12, 2023
86972fa
增加 fair_version mock, 去掉对 fair_version sdk 版本的依赖
zmtzawqlp Apr 12, 2023
3e79af0
修复可选位置参数越界的问题
zmtzawqlp Apr 12, 2023
9122abc
增加 skips 参数,支持跳过某些映射
zmtzawqlp Apr 12, 2023
c0ddeca
1.增加 FairValueNotifier 区别 ValueNotifier,以便支持 ValueNotifier 转换 2. 增加语法…
zmtzawqlp Apr 22, 2023
8fb57fd
futureId 修改为 microsecondsSinceEpoch
zmtzawqlp Apr 22, 2023
3ef0ce6
增加 Sugar.dartObjectToMap 语法糖,替代之前的对象的转 map 的语法糖 2.增加 Sugar.mapSet 语法糖
zmtzawqlp Apr 23, 2023
d3d450b
Sugar.dartObjectToMap 对 debugLabel 非空进行判断
zmtzawqlp Apr 23, 2023
d2fbee6
1. 增加 baseJsSources 支持用户传递自定义的js 进去 2.去掉 BigInt 自定义方法,BigInt 的兼容性不好
zmtzawqlp May 6, 2023
93df1c3
Merge remote-tracking branch 'origin/main' into fixed
zmtzawqlp Sep 20, 2023
e8e417e
Merge remote-tracking branch 'origin/main' into fixed
zmtzawqlp Sep 20, 2023
dd3d814
修复丢失抽象类静态方法属性的bindings
zmtzawqlp Sep 20, 2023
46eeac6
Merge remote-tracking branch 'offical/main' into fixed
zmtzawqlp Jan 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
305 changes: 245 additions & 60 deletions dart2dsl/lib/fairdsl/fair_ast_gen.dart

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions dart2dsl/lib/fairdsl/fair_check_node_map.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*
* Copyright (C) 2005-present, 58.com. All rights reserved.
* Use of this source code is governed by a BSD type license that can be
* found in the LICENSE file.
*/

// **************************************************************************
// 如果存在新文件需要更新,建议先执行清除命令:
// flutter packages pub run build_runner clean
Expand Down Expand Up @@ -58,5 +52,5 @@ final checkNode = {
'WithClauseImpl': 'visitWithClause',
'PropertyAccessImpl': 'visitPropertyAccess',
'PrefixExpressionImpl': 'visitPrefixExpression',
'TypeArgumentListImpl':'visitTypeArgumentList'
'TypeArgumentListImpl': 'visitTypeArgumentList'
};
216 changes: 133 additions & 83 deletions dart2dsl/lib/fairdsl/fair_dsl_gen.dart

Large diffs are not rendered by default.

441 changes: 259 additions & 182 deletions dart2dsl/lib/src/widget.dart

Large diffs are not rendered by default.

Binary file modified example/assets/fair/fair_patch.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added example/assets/fair/lib_json_file_explain.fair.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion example/assets/fair/lib_main.fair.js

Large diffs are not rendered by default.

Binary file modified example/assets/fair/lib_page2page_page_one.fair.bin
Binary file not shown.
27 changes: 16 additions & 11 deletions example/assets/fair/lib_page2page_page_one.fair.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,24 @@
"className": "FloatingActionButton",
"na": {
"onPressed": {
"className": "Navigator.pushNamed",
"pa": [
"^(context)",
"fair_page_two"
],
"na": {
"arguments": {
"path": "assets/fair/lib_page2page_page_two.fair.json",
"data": {
"title": "PageTwo"
"className": "FairFunction",
"body": {
"className": "Navigator.pushNamed",
"pa": [
"^(context)",
"fair_page_two"
],
"na": {
"arguments": {
"path": "assets/fair/lib_page2page_page_two.fair.json",
"data": {
"title": "PageTwo"
}
}
}
}
},
"tag": "void Function()",
"rt": "void"
},
"tooltip": "Increment",
"child": {
Expand Down
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -31,53 +31,64 @@
],
"na": {
"trueValue": {
"className": "Center",
"na": {
"child": {
"className": "Text",
"pa": [
"加载中..."
]
"className": "FairFunction",
"body": {
"className": "Center",
"na": {
"child": {
"className": "Text",
"pa": [
"加载中..."
]
}
}
}
},
"tag": "Widget Function()",
"rt": "Widget"
},
"falseValue": {
"className": "GridView.count",
"na": {
"crossAxisCount": 2,
"mainAxisSpacing": 10,
"crossAxisSpacing": 10,
"children": {
"className": "Sugar.map",
"pa": [
"^(_listData)"
],
"na": {
"builder": {
"className": "AspectRatio",
"na": {
"aspectRatio": 1.5,
"child": {
"className": "ClipRRect",
"className": "FairFunction",
"body": {
"className": "GridView.count",
"na": {
"crossAxisCount": 2,
"mainAxisSpacing": 10,
"crossAxisSpacing": 10,
"children": {
"className": "Sugar.map",
"pa": [
"^(_listData)"
],
"na": {
"builder": {
"className": "FairFunction",
"body": {
"className": "AspectRatio",
"na": {
"borderRadius": {
"className": "BorderRadius.all",
"pa": [
{
"className": "Radius.circular",
"aspectRatio": 1.5,
"child": {
"className": "ClipRRect",
"na": {
"borderRadius": {
"className": "BorderRadius.all",
"pa": [
4.0
{
"className": "Radius.circular",
"pa": [
4.0
]
}
]
},
"child": {
"className": "Image.network",
"pa": [
"$(item.picUrl)"
],
"na": {
"fit": "#(BoxFit.cover)"
}
}
]
},
"child": {
"className": "Image.network",
"pa": [
"$(item.picUrl)"
],
"na": {
"fit": "#(BoxFit.cover)"
}
}
}
Expand All @@ -91,7 +102,9 @@
}
}
}
}
},
"tag": "Widget Function()",
"rt": "Widget"
}
}
}
Expand Down
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading