Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 4 additions & 2 deletions __brick__/web/flutter_bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ async function readAssets() {
return assets;
}

let loadedAssets = 0;
let totalAssets;

async function beginPreloading() {
const assets = await readAssets();

let totalAssets = assets.length;
totalAssets = assets.length;
if (totalAssets === 0) {
// No assets to load, so we can skip the loading process entirely.
return;
}

let loadedAssets = 0;
const batchSize = {{batch_size}};

progressIndicator.style.width = '0%';
Expand Down
2 changes: 1 addition & 1 deletion brick.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository: https://github.com/VeryGoodOpenSource/flutter_web_preloader
version: 0.4.0

environment:
mason: ">=0.1.0-dev.50 <0.1.0"
mason: ">=0.1.1 <0.2.0"

vars:
project_title:
Expand Down
2 changes: 1 addition & 1 deletion hooks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ environment:
sdk: ">=2.17.0 <3.0.0"

dependencies:
mason: ^0.1.0-dev.50
mason: ^0.1.1
yaml: ^3.1.1

dev_dependencies:
Expand Down