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
744e89f1
Commit
744e89f1
authored
Nov 27, 2016
by
Ian Hickson
Committed by
GitHub
Nov 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More docs and other tweaks (#7026)
This fixes minor issues I ran into while using Flutter.
parent
cdf2779e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
21 deletions
+26
-21
material.dart
packages/flutter/lib/material.dart
+1
-0
dialog.dart
packages/flutter/lib/src/material/dialog.dart
+12
-10
progress_indicator.dart
packages/flutter/lib/src/material/progress_indicator.dart
+1
-1
animated_cross_fade.dart
packages/flutter/lib/src/widgets/animated_cross_fade.dart
+12
-10
No files found.
packages/flutter/lib/material.dart
View file @
744e89f1
...
...
@@ -28,6 +28,7 @@ export 'src/material/constants.dart';
export
'src/material/data_table.dart'
;
export
'src/material/data_table_source.dart'
;
export
'src/material/date_picker.dart'
;
export
'src/material/debug.dart'
;
export
'src/material/dialog.dart'
;
export
'src/material/divider.dart'
;
export
'src/material/drawer.dart'
;
...
...
packages/flutter/lib/src/material/dialog.dart
View file @
744e89f1
...
...
@@ -21,9 +21,9 @@ import 'theme.dart';
///
/// See also:
///
/// * [AlertDialog]
/// * [SimpleDialog]
/// * [showDialog]
/// * [AlertDialog]
, for dialogs that have a message and some buttons.
/// * [SimpleDialog]
, for dialogs that offer a variety of options.
/// * [showDialog]
, which actually displays the dialog and returns its result.
/// * <https://material.google.com/components/dialogs.html>
class
Dialog
extends
StatelessWidget
{
/// Creates a dialog.
...
...
@@ -86,9 +86,9 @@ class Dialog extends StatelessWidget {
///
/// See also:
///
/// * [SimpleDialog]
/// * [Dialog]
/// * [showDialog]
/// * [SimpleDialog]
, which handles the scrolling of the contents but has no [actions].
/// * [Dialog]
, on which [AlertDialog] and [SimpleDialog] are based.
/// * [showDialog]
, which actually displays the dialog and returns its result.
/// * <https://material.google.com/components/dialogs.html#dialogs-alerts>
class
AlertDialog
extends
StatelessWidget
{
/// Creates an alert dialog.
...
...
@@ -196,9 +196,9 @@ class AlertDialog extends StatelessWidget {
///
/// See also:
///
/// * [AlertDialog]
/// * [Dialog]
/// * [showDialog]
/// * [AlertDialog]
, for dialogs that have a row of buttons below the body.
/// * [Dialog]
, on which [SimpleDialog] and [AlertDialog] are based.
/// * [showDialog]
, which actually displays the dialog and returns its result.
/// * <https://material.google.com/components/dialogs.html#dialogs-simple-dialogs>
class
SimpleDialog
extends
StatelessWidget
{
/// Creates a simple dialog.
...
...
@@ -320,7 +320,9 @@ class _DialogRoute<T> extends PopupRoute<T> {
/// [Navigator.pop] when the dialog was closed.
///
/// See also:
/// * [Dialog]
/// * [SimpleDialog], which handles the scrolling of the contents but has no [actions].
/// * [AlertDialog], for dialogs that have a row of buttons below the body.
/// * [Dialog], on which [SimpleDialog] and [AlertDialog] are based.
/// * <https://material.google.com/components/dialogs.html>
Future
<
dynamic
/*=T*/
>
showDialog
/*<T>*/
({
BuildContext
context
,
Widget
child
})
{
return
Navigator
.
push
(
context
,
new
_DialogRoute
<
dynamic
/*=T*/
>(
...
...
packages/flutter/lib/src/material/progress_indicator.dart
View file @
744e89f1
...
...
@@ -333,7 +333,7 @@ class _CircularProgressIndicatorState extends State<CircularProgressIndicator> w
return
new
Container
(
constraints:
new
BoxConstraints
(
minWidth:
_kMinCircularProgressIndicatorSize
,
minHeight:
_kMinCircularProgressIndicatorSize
minHeight:
_kMinCircularProgressIndicatorSize
,
),
child:
new
CustomPaint
(
painter:
new
_CircularProgressIndicatorPainter
(
...
...
packages/flutter/lib/src/widgets/animated_cross_fade.dart
View file @
744e89f1
...
...
@@ -11,20 +11,24 @@ import 'framework.dart';
import
'ticker_provider.dart'
;
import
'transitions.dart'
;
/// Specifies which of t
he
children to show. See [AnimatedCrossFade].
/// Specifies which of t
wo
children to show. See [AnimatedCrossFade].
///
/// The child that is shown will fade in, while the other will fade out.
enum
CrossFadeState
{
/// Show the first child and hide the second.
/// Show the first child ([AnimatedCrossFade.firstChild]) and hide the second
/// ([AnimatedCrossFade.secondChild]]).
showFirst
,
/// Show the second child and hide the first.
showSecond
/// Show the second child ([AnimatedCrossFade.secondChild]) and hide the first
/// ([AnimatedCrossFade.firstChild]).
showSecond
,
}
/// A widget that cross-fades between two children and animates itself between
/// their sizes. The animation is controlled through the [crossFadeState]
/// parameter. [firstCurve] and [secondCurve] represent the opacity curves of
/// the two children. Note that [firstCurve] is inverted, i.e. it fades out when
/// A widget that cross-fades between two given children and animates itself
/// between their sizes.
///
/// The animation is controlled through the [crossFadeState] parameter.
/// [firstCurve] and [secondCurve] represent the opacity curves of the two
/// children. Note that [firstCurve] is inverted, i.e. it fades out when
/// providing a growing curve like [Curves.linear]. [sizeCurve] is the curve
/// used to animated between the size of the fading out child and the size of
/// the fading in child.
...
...
@@ -82,8 +86,6 @@ class AnimatedCrossFade extends StatefulWidget {
}
class
_AnimatedCrossFadeState
extends
State
<
AnimatedCrossFade
>
with
TickerProviderStateMixin
{
_AnimatedCrossFadeState
()
:
super
();
AnimationController
_controller
;
Animation
<
double
>
_firstAnimation
;
Animation
<
double
>
_secondAnimation
;
...
...
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