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
34d4c7fe
Unverified
Commit
34d4c7fe
authored
Dec 15, 2020
by
Justin McCandless
Committed by
GitHub
Dec 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrated docs to nnbd (#72305)
Simply part of the movement to get our docs aligned with NNBD.
parent
eb01b7e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
interactive_viewer.dart
packages/flutter/lib/src/widgets/interactive_viewer.dart
+8
-8
No files found.
packages/flutter/lib/src/widgets/interactive_viewer.dart
View file @
34d4c7fe
...
...
@@ -34,7 +34,7 @@ import 'ticker_provider.dart';
/// * The [Flutter Gallery's transformations demo](https://github.com/flutter/gallery/blob/master/lib/demos/reference/transformations_demo.dart),
/// which includes the use of InteractiveViewer.
///
/// {@tool dartpad --template=stateless_widget_scaffold
_no_null_safety
}
/// {@tool dartpad --template=stateless_widget_scaffold}
/// This example shows a simple Container that can be panned and zoomed.
///
/// ```dart
...
...
@@ -151,7 +151,7 @@ class InteractiveViewer extends StatefulWidget {
///
/// Defaults to true.
///
/// {@tool dartpad --template=stateless_widget_scaffold
_no_null_safety
}
/// {@tool dartpad --template=stateless_widget_scaffold}
/// This example shows how to create a pannable table. Because the table is
/// larger than the entire screen, setting `constrained` to false is necessary
/// to allow it to be drawn to its full size. The parts of the table that
...
...
@@ -305,19 +305,19 @@ class InteractiveViewer extends StatefulWidget {
/// listeners are notified. If the value is set, InteractiveViewer will update
/// to respect the new value.
///
/// {@tool dartpad --template=stateful_widget_material_ticker
_no_null_safety
}
/// {@tool dartpad --template=stateful_widget_material_ticker}
/// This example shows how transformationController can be used to animate the
/// transformation back to its starting position.
///
/// ```dart
/// final TransformationController _transformationController = TransformationController();
/// Animation<Matrix4> _animationReset;
/// AnimationController _controllerReset;
/// Animation<Matrix4>
?
_animationReset;
///
late final
AnimationController _controllerReset;
///
/// void _onAnimateReset() {
/// _transformationController.value = _animationReset.value;
/// _transformationController.value = _animationReset
!
.value;
/// if (!_controllerReset.isAnimating) {
/// _animationReset
?
.removeListener(_onAnimateReset);
/// _animationReset
!
.removeListener(_onAnimateReset);
/// _animationReset = null;
/// _controllerReset.reset();
/// }
...
...
@@ -329,7 +329,7 @@ class InteractiveViewer extends StatefulWidget {
/// begin: _transformationController.value,
/// end: Matrix4.identity(),
/// ).animate(_controllerReset);
/// _animationReset.addListener(_onAnimateReset);
/// _animationReset
!
.addListener(_onAnimateReset);
/// _controllerReset.forward();
/// }
///
...
...
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