-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_config.yaml
125 lines (107 loc) · 4.56 KB
/
default_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# XWidget default config
# inflater options
inflaters:
target: "lib/xwidget/generated/inflaters.g.dart"
imports: [
"package:xwidget/xwidget.dart",
]
sources: [ ]
includes: [ ]
constructor_exclusions: [
"CachedNetworkImage:imageRenderMethodForWeb",
]
# TODO: find a way to read variable object defaults from source
# Unfortunately, the analyzer's public API is very limiting. The information is there, but
# we can't access it unless they make it public. For now we'll just have to maintain this map.
constructor_arg_defaults:
"AnimatedCrossFade:layoutBuilder": "AnimatedCrossFade.defaultLayoutBuilder"
"BoxShadow:color": "const Color(0xFF000000)"
"CupertinoSliverRefreshControl:builder": "CupertinoSliverRefreshControl.buildRefreshIndicator"
"CupertinoTextField:placeholderStyle": "const TextStyle(fontWeight: FontWeight.w400, color: CupertinoColors.placeholderText)"
"CupertinoTextField.borderless:placeholderStyle": "const TextStyle(fontWeight: FontWeight.w400, color: CupertinoColors.placeholderText)"
"Dialog:insetPadding": "const EdgeInsets.symmetric(horizontal: 40.0, vertical: 24.0)"
"FloatingActionButton:heroTag": "'<default FloatingActionButton hero tag>'"
"FloatingActionButton.small:heroTag": "'<default FloatingActionButton hero tag>'"
"FloatingActionButton.large:heroTag": "'<default FloatingActionButton hero tag>'"
"FloatingActionButton.extended:heroTag": "'<default FloatingActionButton hero tag>'"
"SlidableAction:backgroundColor": "Colors.white"
"Text:data": "XWidgetUtils.joinStrings(text)"
"WidgetSpan:alignment": "PlaceholderAlignment.middle"
"*:colorBlendMode": "BlendMode.srcIn"
"*:selectionHeightStyle": "BoxHeightStyle.tight"
"*:selectionWidthStyle": "BoxWidthStyle.tight"
constructor_arg_parsers:
# basic types
"bool": "parseBool(value)"
"double": "parseDouble(value)"
"int": "parseInt(value)"
"String": "value"
# complex types
"Alignment": "parseAlignment(value)"
"AlignmentDirectional": "parseAlignmentDirectional(value)"
"AlignmentGeometry": "parseAlignmentGeometry(value)"
"Duration": "parseDuration(value)"
"BorderRadius": "parseBorderRadius(value)"
"BorderRadiusGeometry": "parseBorderRadius(value)"
"Color": "parseColor(value)"
"Curve": "parseCurve(value)"
"EdgeInsets": "parseEdgeInsets(value)"
"EdgeInsetsGeometry": "parseEdgeInsetsGeometry(value)"
"IconData": "parseIcon(value)"
"InputBorder": "parseInputBorder(value)"
"FontWeight": "parseFontWeight(value)"
"Key": "parseKey(value)"
"List<String>": "parseListOfStrings(value)"
"List<double>": "parseListOfDoubles(value)"
"List<int>": "parseListOfInts(value)"
"Locale": "parseLocale(value)"
"MaterialStateProperty<Color>": "parseMaterialStateColor(value)"
"MaterialStateProperty<double>": "parseMaterialStateDouble(value)"
"MaterialStateProperty<EdgeInsetsGeometry>": "parseMaterialStateEdgeInsets(value)"
"MaterialStateProperty<Size>": "parseMaterialStateSize(value)"
"Offset": "parseOffset(value)"
"Size": "parseSize(value)"
"TextDecoration": "parseTextDecoration(value)"
"TextInputType": "parseTextInputType(value)"
"VisualDensity": "parseVisualDensity(value)"
"WidgetStateProperty<Color>": "parseWidgetStateColor(value)"
"WidgetStateProperty<double>": "parseWidgetStateDouble(value)"
"WidgetStateProperty<EdgeInsetsGeometry>": "parseWidgetStateEdgeInsets(value)"
"WidgetStateProperty<Size>": "parseWidgetStateSize(value)"
# type/class agnostic - for specific attributes
"*:width": "parseDouble(value)"
"*:height": "parseDouble(value)"
"*:icon": "parseIcon(value)"
"*:activeIcon": "parseIcon(value)"
schema:
target: "xwidget_schema.g.xsd"
template: "xwidget|res/schema_template.xsd"
types:
"bool": "boolAttributeType"
"Alignment": "AlignmentAttributeType"
"AlignmentDirectional": "AlignmentDirectionalAttributeType"
"AlignmentGeometry": "AlignmentGeometryAttributeType"
"Curve": "CurvesAttributeType"
"FontWeight": "FontWeightAttributeType"
"InputBorder": "InputBorderAttributeType"
"TextDecoration": "TextDecorationAttributeType"
"TextInputType": "TextInputTypeAttributeType"
attribute_exclusions: [
"*:child",
]
# controller options
controllers:
target: "lib/xwidget/generated/controllers.g.dart"
imports: [
"package:xwidget/xwidget.dart",
]
sources: [
"lib/xwidget/controllers/**.dart"
]
# icon options
icons:
target: "lib/xwidget/generated/icons.g.dart"
imports: [
"package:xwidget/xwidget.dart",
]
sources: [ ]