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

Fix image suffix mismatch in description #11542

Merged
merged 4 commits into from
Dec 26, 2024
Merged
Changes from 2 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
8 changes: 4 additions & 4 deletions src/content/get-started/flutter-for/android-devs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1277,16 +1277,16 @@ val flutterAssetStream = assetManager.open("flutter_assets/assets/my_flutter_ass

Flutter can't access native resources or assets.

To add a new image asset called `my_icon.png` to our Flutter project,
To add a new image asset called `my_icon.jpeg` to our Flutter project,
for example, and deciding that it should live in a folder we
arbitrarily called `images`, you would put the base image (1.0x)
in the `images` folder, and all the other variants in sub-folders
called with the appropriate ratio multiplier:

```plaintext
images/my_icon.png // Base: 1.0x image
images/2.0x/my_icon.png // 2.0x image
images/3.0x/my_icon.png // 3.0x image
images/my_icon.jpeg // Base: 1.0x image
images/2.0x/my_icon.jpeg // 2.0x image
images/3.0x/my_icon.jpeg // 3.0x image
```

Next, you'll need to declare these images in your `pubspec.yaml` file:
Expand Down
Loading