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
3cebd041
Commit
3cebd041
authored
Jul 28, 2016
by
Hans Muller
Committed by
GitHub
Jul 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More gallery tweaks (#5125)
parent
a46e3377
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
contacts_demo.dart
examples/flutter_gallery/lib/demo/contacts_demo.dart
+1
-1
progress_indicator.dart
packages/flutter/lib/src/material/progress_indicator.dart
+2
-2
refresh_indicator.dart
packages/flutter/lib/src/material/refresh_indicator.dart
+3
-3
No files found.
examples/flutter_gallery/lib/demo/contacts_demo.dart
View file @
3cebd041
...
...
@@ -82,7 +82,7 @@ class ContactsDemo extends StatefulWidget {
class
ContactsDemoState
extends
State
<
ContactsDemo
>
{
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
new
GlobalKey
<
ScaffoldState
>();
final
double
_appBarHeight
=
256.0
;
AppBarBehavior
_appBarBehavior
=
AppBarBehavior
.
scroll
;
AppBarBehavior
_appBarBehavior
=
AppBarBehavior
.
under
;
@override
Widget
build
(
BuildContext
context
)
{
...
...
packages/flutter/lib/src/material/progress_indicator.dart
View file @
3cebd041
...
...
@@ -54,11 +54,11 @@ abstract class ProgressIndicator extends StatefulWidget {
/// color use: `new AlwaysStoppedAnimation<Color>(color)`.
///
/// If null, the progress indicator is rendered with the current theme's
/// [ThemeData.
primary
Color].
/// [ThemeData.
accent
Color].
final
Animation
<
Color
>
valueColor
;
Color
_getBackgroundColor
(
BuildContext
context
)
=>
backgroundColor
??
Theme
.
of
(
context
).
backgroundColor
;
Color
_getValueColor
(
BuildContext
context
)
=>
valueColor
?.
value
??
Theme
.
of
(
context
).
primary
Color
;
Color
_getValueColor
(
BuildContext
context
)
=>
valueColor
?.
value
??
Theme
.
of
(
context
).
accent
Color
;
@override
void
debugFillDescription
(
List
<
String
>
description
)
{
...
...
packages/flutter/lib/src/material/refresh_indicator.dart
View file @
3cebd041
...
...
@@ -125,7 +125,7 @@ class RefreshIndicator extends StatefulWidget {
final
RefreshIndicatorLocation
location
;
/// The progress indicator's foreground color. The current theme's
/// [ThemeData.
primary
Color] by default.
/// [ThemeData.
accent
Color] by default.
final
Color
color
;
/// The progress indicator's background color. The current theme's
...
...
@@ -168,8 +168,8 @@ class RefreshIndicatorState extends State<RefreshIndicator> {
// Fully opaque when we've reached config.displacement.
_valueColor
=
new
ColorTween
(
begin:
(
config
.
color
??
theme
.
primary
Color
).
withOpacity
(
0.0
),
end:
(
config
.
color
??
theme
.
primary
Color
).
withOpacity
(
1.0
)
begin:
(
config
.
color
??
theme
.
accent
Color
).
withOpacity
(
0.0
),
end:
(
config
.
color
??
theme
.
accent
Color
).
withOpacity
(
1.0
)
)
.
animate
(
new
CurvedAnimation
(
parent:
_sizeController
,
...
...
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