Skip to content

Commit 3e79fca

Browse files
committed
fix: Update to newer mason
1 parent 5a45a97 commit 3e79fca

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

__brick__/web/flutter_bootstrap.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@ async function readAssets() {
1717
return assets;
1818
}
1919

20+
let loadedAssets = 0;
21+
let totalAssets;
22+
2023
async function beginPreloading() {
2124
const assets = await readAssets();
2225

23-
let totalAssets = assets.length;
26+
totalAssets = assets.length;
2427
if (totalAssets === 0) {
2528
// No assets to load, so we can skip the loading process entirely.
2629
return;
2730
}
2831

29-
let loadedAssets = 0;
3032
const batchSize = {{batch_size}};
3133

3234
progressIndicator.style.width = '0%';

brick.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repository: https://github.com/VeryGoodOpenSource/flutter_web_preloader
44
version: 0.4.0
55

66
environment:
7-
mason: ">=0.1.0-dev.50 <0.1.0"
7+
mason: ">=0.1.1 <0.2.0"
88

99
vars:
1010
project_title:

hooks/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ environment:
44
sdk: ">=2.17.0 <3.0.0"
55

66
dependencies:
7-
mason: ^0.1.0-dev.50
7+
mason: ^0.1.1
88
yaml: ^3.1.1
99

1010
dev_dependencies:

0 commit comments

Comments
 (0)