-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[web] Migrate index.html to use flutter.js #630
Conversation
|
First of all, apologies for the unprompted PR and "feature". I am not a designer, so of course the whole "loader" (animation, image...) can be changed to best fit the direction in which the Gallery app wants to go. It can even be removed altogether very easily, and just keep a behavior very similar to the current one, with the dark background only. This change is also optional. The old index.html should continue to work Just Fine™ with the new Flutter, but the new style of index is what's going to start showing up on people's new apps, so migrating this to PS: this requires |
|
Thanks for this, looks great! The gallery is effectively community owned so these sorts of improvements are welcome! The gallery does run off the master channel |
Also: * Align body styles with flutter's while loading, so the logo doesn't jump around too much. * Document why this needs to wait a few hundred ms before removoing the loading indicator (so users can _see_ the zoom animation at all!)
|
@guidezpl shall I click "Squash and merge" or do you want to take another look? I think the latest revision is clearer (and it doesn't delay the start of the app!) Thanks! |
|
LGTM! |
We have just landed
flutter.jsin Flutter master channel, which greatly simplifies theindex.htmlfile, and adds a JS API that lets programmers initialize their apps however they see fit. See this.As a "demo" of the new flexibility, I created a small loading animation with 3 steps:
I've deployed a demo here:
Tests:
Manually tested in Chrome/Firefox on Linux and MacOS. (Couldn't find tests for the index.html file?)
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.