Commit 4a92f631 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Rename Picture example to MyImage (#10522)

parent 6f824bce
...@@ -160,11 +160,12 @@ class ImageConfiguration { ...@@ -160,11 +160,12 @@ class ImageConfiguration {
/// ## Sample code /// ## Sample code
/// ///
/// The following shows the code required to write a widget that fully conforms /// The following shows the code required to write a widget that fully conforms
/// to the [ImageProvider] and [Widget] protocols. /// to the [ImageProvider] and [Widget] protocols. (It is essentially a
/// bare-bones version of the [Image] widget.)
/// ///
/// ```dart /// ```dart
/// class Picture extends StatefulWidget { /// class MyImage extends StatefulWidget {
/// const Picture({ /// const MyImage({
/// Key key, /// Key key,
/// @required this.imageProvider, /// @required this.imageProvider,
/// }) : assert(imageProvider != null), /// }) : assert(imageProvider != null),
...@@ -173,10 +174,10 @@ class ImageConfiguration { ...@@ -173,10 +174,10 @@ class ImageConfiguration {
/// final ImageProvider imageProvider; /// final ImageProvider imageProvider;
/// ///
/// @override /// @override
/// _PictureState createState() => new _PictureState(); /// _MyImageState createState() => new _MyImageState();
/// } /// }
/// ///
/// class _PictureState extends State<Picture> { /// class _MyImageState extends State<MyImage> {
/// ImageStream _imageStream; /// ImageStream _imageStream;
/// ImageInfo _imageInfo; /// ImageInfo _imageInfo;
/// ///
...@@ -190,7 +191,7 @@ class ImageConfiguration { ...@@ -190,7 +191,7 @@ class ImageConfiguration {
/// } /// }
/// ///
/// @override /// @override
/// void didUpdateWidget(Picture oldWidget) { /// void didUpdateWidget(MyImage oldWidget) {
/// super.didUpdateWidget(oldWidget); /// super.didUpdateWidget(oldWidget);
/// if (widget.imageProvider != oldWidget.imageProvider) /// if (widget.imageProvider != oldWidget.imageProvider)
/// _getImage(); /// _getImage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment