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

Improved AssetImage Docs #78173

Merged
merged 9 commits into from
May 17, 2021
4 changes: 4 additions & 0 deletions packages/flutter/lib/src/painting/image_resolution.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ const double _kLowDprLimit = 2.0;
/// AssetImage('icons/heart.png')
/// ```
///
/// For an example on how an [AssetImage] would be resolved to obtain a
/// [dart:ui.Image] object, refer to the sample code in the documentation for
/// [ImageProvider].
Swayam221 marked this conversation as resolved.
Show resolved Hide resolved
///
/// ## Assets in packages
///
/// To fetch an asset from a package, the [package] argument must be provided.
Expand Down