File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- ## NEXT
1+ ## 4.1.10
22
3+ * Fixes image asset link to use image within package.
34* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
45
56## 4.1.9
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ class MyApp extends StatelessWidget {
1313 const MyApp ({super .key});
1414
1515 /// Returns the URL to load an asset from this example app as a network source.
16- // TODO(nitinpoojary): Change it to use an image within this package.
17- String getUrlFromAssetAsNetworkSource () {
18- return 'https://github.com/flutter/packages/blob/2e1673307ff7454aff40b47024eaed49a9e77e81/packages/flutter_markdown/example/assets/logo.png' ;
16+ String getUrlForAssetAsNetworkSource (String assetKey) {
17+ return 'https://github.com/flutter/packages/blob/b96a6dae0ca418cf1e91633f275866aa9cffe437/packages/flutter_image/example/$assetKey ?raw=true' ;
1918 }
2019
2120 @override
2221 Widget build (BuildContext context) {
23- final String imageUrl = getUrlFromAssetAsNetworkSource ();
22+ final String imageUrl =
23+ getUrlForAssetAsNetworkSource ('assets/flutter-mark-square-64.png' );
2424
2525 return MaterialApp (
2626 title: 'flutter_image example app' ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: >
33 Image utilities for Flutter: improved network providers, effects, etc.
44repository : https://github.com/flutter/packages/tree/main/packages/flutter_image
55issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_image%22
6- version : 4.1.9
6+ version : 4.1.10
77
88environment :
99 sdk : " >=3.0.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments