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
179ca816
Commit
179ca816
authored
Jan 15, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade progress_indicator demo defend against null color in updateTaskDescription
parent
abb17ea9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
progress_indicator.dart
examples/widgets/progress_indicator.dart
+13
-11
activity.dart
packages/flutter/lib/src/services/activity.dart
+1
-1
No files found.
examples/widgets/progress_indicator.dart
View file @
179ca816
...
...
@@ -6,10 +6,10 @@ import 'package:flutter/animation.dart';
import
'package:flutter/material.dart'
;
class
ProgressIndicatorApp
extends
StatefulComponent
{
ProgressIndicatorAppState
createState
()
=>
new
ProgressIndicatorAppState
();
_ProgressIndicatorAppState
createState
()
=>
new
_
ProgressIndicatorAppState
();
}
class
ProgressIndicatorAppState
extends
State
<
ProgressIndicatorApp
>
{
class
_
ProgressIndicatorAppState
extends
State
<
ProgressIndicatorApp
>
{
void
initState
()
{
super
.
initState
();
valueAnimation
=
new
ValuePerformance
<
double
>()
...
...
@@ -98,14 +98,11 @@ class ProgressIndicatorAppState extends State<ProgressIndicatorApp> {
primarySwatch:
Colors
.
blue
,
accentColor:
Colors
.
redAccent
[
200
]
),
child:
new
Title
(
title:
'Progress Indicators'
,
child:
new
Scaffold
(
toolBar:
new
ToolBar
(
center:
new
Text
(
'Progress Indicators'
)),
body:
new
DefaultTextStyle
(
style:
Theme
.
of
(
context
).
text
.
title
,
child:
body
)
child:
new
Scaffold
(
toolBar:
new
ToolBar
(
center:
new
Text
(
'Progress Indicators'
)),
body:
new
DefaultTextStyle
(
style:
Theme
.
of
(
context
).
text
.
title
,
child:
body
)
)
)
...
...
@@ -114,5 +111,10 @@ class ProgressIndicatorAppState extends State<ProgressIndicatorApp> {
}
void
main
(
)
{
runApp
(
new
ProgressIndicatorApp
());
runApp
(
new
MaterialApp
(
title:
'Progress Indicators'
,
routes:
{
'/'
:
(
RouteArguments
args
)
=>
new
ProgressIndicatorApp
()
}
));
}
packages/flutter/lib/src/services/activity.dart
View file @
179ca816
...
...
@@ -60,7 +60,7 @@ void updateTaskDescription(String label, Color color) {
TaskDescription
description
=
new
TaskDescription
()
..
label
=
label
..
primaryColor
=
color
?.
value
;
..
primaryColor
=
color
?.
value
??
0
;
_activityProxy
.
ptr
.
setTaskDescription
(
description
);
}
...
...
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