Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4a92f631
Commit
4a92f631
authored
Jun 06, 2017
by
Ian Hickson
Committed by
GitHub
Jun 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Picture example to MyImage (#10522)
parent
6f824bce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
image_provider.dart
packages/flutter/lib/src/services/image_provider.dart
+7
-6
No files found.
packages/flutter/lib/src/services/image_provider.dart
View file @
4a92f631
...
...
@@ -160,11 +160,12 @@ class ImageConfiguration {
/// ## Sample code
///
/// 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
/// class
Pictur
e extends StatefulWidget {
/// const
Pictur
e({
/// class
MyImag
e extends StatefulWidget {
/// const
MyImag
e({
/// Key key,
/// @required this.imageProvider,
/// }) : assert(imageProvider != null),
...
...
@@ -173,10 +174,10 @@ class ImageConfiguration {
/// final ImageProvider imageProvider;
///
/// @override
/// _
PictureState createState() => new _Pictur
eState();
/// _
MyImageState createState() => new _MyImag
eState();
/// }
///
/// class _
PictureState extends State<Pictur
e> {
/// class _
MyImageState extends State<MyImag
e> {
/// ImageStream _imageStream;
/// ImageInfo _imageInfo;
///
...
...
@@ -190,7 +191,7 @@ class ImageConfiguration {
/// }
///
/// @override
/// void didUpdateWidget(
Pictur
e oldWidget) {
/// void didUpdateWidget(
MyImag
e oldWidget) {
/// super.didUpdateWidget(oldWidget);
/// if (widget.imageProvider != oldWidget.imageProvider)
/// _getImage();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment