Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stocks example: 404 on resolving image assets #7

Closed
tobrun opened this issue May 1, 2015 · 7 comments
Closed

Stocks example: 404 on resolving image assets #7

tobrun opened this issue May 1, 2015 · 7 comments

Comments

@tobrun
Copy link

tobrun commented May 1, 2015

When running the sample application, material icons seem to be missing from the UI

device-2015-05-01-204028

Verifying the output in the terminal, I noticed the lines with a 404 code:

screen shot 2015-05-01 at 20 35 06

I went to check the mentioned paths and they were indeed non-exisitent. I stumbled on this python script to download the assets. In the screenshot below you can see the result after execution:

screen shot 2015-05-01 at 20 48 45

Running the application and remove/reinstalling the application resulted in the same 404 messages.

@tobrun tobrun changed the title SkyExample.apk 404 on resolving image assets Stocks example: 404 on resolving image assets May 1, 2015
@tobrun
Copy link
Author

tobrun commented May 1, 2015

I noticed that the path mentioned in terminal is not the same as path of the resource:

packages/sky/lib/assets/material-design-icons/navigation/2x-web

Versus

/packages/sky/assets/material-design-icons/navigation/2x-web

@abarth
Copy link
Contributor

abarth commented May 2, 2015

@eseidelGoogle: Would you be willing to take a look at this on issue?

@abarth
Copy link
Contributor

abarth commented May 2, 2015

@tobrun
Copy link
Author

tobrun commented May 3, 2015

To be sure I did a new test today:

  • clean git clone of sky sdk
  • took the steps from README.md to get the stocks example running
  • noticed that the icons were missing
  • invoked the script @abarth mentioned
  • removed and clean installed the application

I'm seeing this output:

screen shot 2015-05-03 at 10 33 27

When verifying the path I'm seeing no files in the assets folder:

screen shot 2015-05-03 at 10 34 17

@eseidelGoogle
Copy link
Contributor

Hi, sorry my team has been out of the office since the summit.

As adam mentioned, there is a script included with the pub package which should download these icons for you. For example:

cd examples/stocks
pub get
./packages/sky/download_material_design_icons
./packages/sky/sky_tool start

Should start it with all the icons there.

@abarth
Copy link
Contributor

abarth commented Nov 7, 2015

We've addressed this issue by introducing an FLX file that contains all the assets your app needs.

@abarth abarth closed this as completed Nov 7, 2015
@Klazyo Klazyo mentioned this issue Sep 6, 2021
@github-actions
Copy link

github-actions bot commented Sep 7, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants