Skip to content

Commit

Permalink
Merge pull request #401 from zmtzawqlp/fixed
Browse files Browse the repository at this point in the history
zmtzawqlp fixed
  • Loading branch information
wanbing authored Jun 18, 2024
2 parents 6d8c4be + 46eeac6 commit 383690c
Show file tree
Hide file tree
Showing 291 changed files with 10,517 additions and 7,418 deletions.
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

0 comments on commit 383690c

Please sign in to comment.