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
961f1b74
Unverified
Commit
961f1b74
authored
Sep 23, 2019
by
Michael Goderbauer
Committed by
GitHub
Sep 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AnimatedBuilder API Doc improvements (#40917)
parent
b0563e1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
transitions.dart
packages/flutter/lib/src/widgets/transitions.dart
+12
-2
No files found.
packages/flutter/lib/src/widgets/transitions.dart
View file @
961f1b74
...
...
@@ -875,7 +875,8 @@ class DefaultTextStyleTransition extends AnimatedWidget {
///
/// This code defines a widget called `Spinner` that spins a green square
/// continually. It is built with an [AnimatedBuilder] and makes use of the
/// [child] feature to avoid having to rebuild the [Container] each time.
/// [child] feature to avoid having to rebuild the [Container] each time. The
/// resulting animation is shown below the code.
///
/// ```dart
/// class Spinner extends StatefulWidget {
...
...
@@ -905,7 +906,14 @@ class DefaultTextStyleTransition extends AnimatedWidget {
/// Widget build(BuildContext context) {
/// return AnimatedBuilder(
/// animation: _controller,
/// child: Container(width: 200.0, height: 200.0, color: Colors.green),
/// child: Container(
/// width: 200.0,
/// height: 200.0,
/// color: Colors.green,
/// child: const Center(
/// child: Text('Wee'),
/// ),
/// ),
/// builder: (BuildContext context, Widget child) {
/// return Transform.rotate(
/// angle: _controller.value * 2.0 * math.pi,
...
...
@@ -918,6 +926,8 @@ class DefaultTextStyleTransition extends AnimatedWidget {
/// ```
/// {@end-tool}
///
/// {@animation 300 300 https://flutter.github.io/assets-for-api-docs/assets/widgets/animated_builder.mp4}
///
/// See also:
///
/// * [TweenAnimationBuilder], which animates a property to a target value
...
...
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