Skip to content

Commit 942fd75

Browse files
committed
fix tests
1 parent aed9e2d commit 942fd75

10 files changed

Lines changed: 36 additions & 30 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dependencies:
6666
flutter_localizations:
6767
sdk: flutter
6868
provider: ^3.0.0+1
69-
flutter_xmllayout_helpers: ^0.0.4
69+
flutter_xmllayout_helpers: ^0.0.6
7070
```
7171
4. Apply one of the following steps:
7272
* Clear all `main.dart` content then use `fxml_app` snippet to create the app.
@@ -155,9 +155,9 @@ class HomeController extends HomeControllerBase {
155155
### 2. [Pipes](./docs/pipes.md)
156156
### 3. [Custom properties](./docs/custom-properties.md)
157157
### 4. [Injecting providers](./docs/providers.md)
158-
### 4. [Parameters](./docs/parameters.md)
159-
### 5. [Adding controllers to widgets](./docs/controllers.md)
160-
### 6. [Adding mixin to widget's states](./docs/mixins.md)
161-
### 7. [Localization](./docs/localization.md)
162-
### 8. [Developer customization](./docs/customization.md)
158+
### 5. [Parameters](./docs/parameters.md)
159+
### 6. [Adding controllers to widgets](./docs/controllers.md)
160+
### 7. [Adding mixin to widget's states](./docs/mixins.md)
161+
### 8. [Localization](./docs/localization.md)
162+
### 9. [Developer customization](./docs/customization.md)
163163

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "XML Layout for Flutter",
44
"description": "XML Layout for Flutter. Brings Angular's style to Flutter!",
55
"publisher": "WaseemDev",
6-
"version": "0.0.18",
6+
"version": "0.0.19",
77
"icon": "images/logo.png",
88
"repository": {
99
"type": "github",
@@ -12,6 +12,13 @@
1212
"engines": {
1313
"vscode": "^1.34.0"
1414
},
15+
"keywords": [
16+
"flutter",
17+
"dart",
18+
"widgets",
19+
"xml",
20+
"angular"
21+
],
1522
"categories": [
1623
"Other"
1724
],

src/property-handlers/builder.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ suite("Builder Tests", function () {
8080
);
8181
},
8282
),
83-
() => Container(width: 0, height: 0)
83+
() => null
8484
)
8585
`;
8686

src/property-handlers/if.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ suite("If custom property", function () {
99
WidgetHelpers.ifTrue(true,
1010
() => Text(
1111
),
12-
() => Container(width: 0, height: 0)
12+
() => null
1313
)`;
1414

1515
const generated = generateWidget(xml);
@@ -30,7 +30,7 @@ WidgetHelpers.ifTrue(true,
3030
);
3131
},
3232
),
33-
() => Container(width: 0, height: 0)
33+
() => null
3434
)
3535
`;
3636

@@ -54,7 +54,7 @@ WidgetHelpers.ifTrue(true,
5454
),
5555
),
5656
),
57-
() => Container(width: 0, height: 0)
57+
() => null
5858
)
5959
`;
6060

src/property-handlers/item-builder.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ suite("ItemBuilder Tests", function () {
121121
);
122122
},
123123
),
124-
() => Container(width: 0, height: 0)
124+
() => null
125125
)
126126
`;
127127

@@ -149,7 +149,7 @@ suite("ItemBuilder Tests", function () {
149149
},
150150
),
151151
),
152-
() => Container(width: 0, height: 0)
152+
() => null
153153
)
154154
`;
155155

@@ -177,7 +177,7 @@ suite("ItemBuilder Tests", function () {
177177
},
178178
),
179179
),
180-
() => Container(width: 0, height: 0)
180+
() => null
181181
)
182182
`;
183183

@@ -231,7 +231,7 @@ suite("ItemBuilder Tests", function () {
231231
},
232232
),
233233
),
234-
() => Container(width: 0, height: 0)
234+
() => null
235235
)
236236
`;
237237

src/property-handlers/repeat.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ suite("Repeat Tests", function () {
4444
() => Text(
4545
4646
),
47-
() => Container(width: 0, height: 0)
47+
() => null
4848
);
4949
}
5050
)

src/property-handlers/switch.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ suite("Switch Tests", function () {
300300
]
301301
),
302302
),
303-
() => Container(width: 0, height: 0)
303+
() => null
304304
)
305305
`;
306306

src/resolvers/pipes.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ suite("Pipes Tests", function () {
337337
),
338338
),
339339
),
340-
() => Container(width: 0, height: 0)
340+
() => null
341341
),
342342
],
343343
),
@@ -413,7 +413,7 @@ suite("Pipes Tests", function () {
413413
),
414414
),
415415
),
416-
() => Container(width: 0, height: 0)
416+
() => null
417417
),
418418
],
419419
),

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
],
99
"sourceMap": true,
1010
"rootDir": "src",
11-
"strict": true /* enable all strict type-checking options */
11+
"strict": true, /* enable all strict type-checking options */
12+
"strictNullChecks": false
1213
/* Additional Checks */
1314
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
1415
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

tslint.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
22
"rules": {
3-
"no-string-throw": true,
4-
"no-unused-expression": true,
5-
"no-duplicate-variable": true,
6-
"curly": true,
7-
"class-name": true,
8-
"semicolon": [
9-
true,
10-
"always"
11-
],
12-
"triple-equals": true
3+
"curly": false,
4+
"no-console": false,
5+
"max-classes-per-file": false,
6+
"interface-name": false,
7+
"member-ordering": false,
8+
"max-line-length": false,
9+
"ordered-imports": false,
10+
"no-shadowed-variable": false
1311
},
1412
"defaultSeverity": "warning"
1513
}

0 commit comments

Comments
 (0)