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
3ddd77de
Unverified
Commit
3ddd77de
authored
Feb 11, 2021
by
Miguel Beltran
Committed by
GitHub
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #75792 - allow use of Animator<Color?> with LinearProgressIndicator (#75794)
parent
b1cc4874
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
progress_indicator.dart
packages/flutter/lib/src/material/progress_indicator.dart
+1
-1
progress_indicator_test.dart
packages/flutter/test/material/progress_indicator_test.dart
+25
-0
No files found.
packages/flutter/lib/src/material/progress_indicator.dart
View file @
3ddd77de
...
...
@@ -304,7 +304,7 @@ class LinearProgressIndicator extends ProgressIndicator {
Key
?
key
,
double
?
value
,
Color
?
backgroundColor
,
Animation
<
Color
>?
valueColor
,
Animation
<
Color
?
>?
valueColor
,
this
.
minHeight
,
String
?
semanticsLabel
,
String
?
semanticsValue
,
...
...
packages/flutter/test/material/progress_indicator_test.dart
View file @
3ddd77de
...
...
@@ -196,6 +196,31 @@ void main() {
);
});
testWidgets
(
'LinearProgressIndicator with animation with null colors'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
const
Directionality
(
textDirection:
TextDirection
.
ltr
,
child:
Center
(
child:
SizedBox
(
width:
200.0
,
child:
LinearProgressIndicator
(
value:
0.25
,
valueColor:
AlwaysStoppedAnimation
<
Color
?>(
null
),
backgroundColor:
Colors
.
black
,
),
),
),
),
);
expect
(
find
.
byType
(
LinearProgressIndicator
),
paints
..
rect
(
rect:
const
Rect
.
fromLTRB
(
0.0
,
0.0
,
200.0
,
4.0
))
..
rect
(
rect:
const
Rect
.
fromLTRB
(
0.0
,
0.0
,
50.0
,
4.0
)),
);
});
testWidgets
(
'CircularProgressIndicator(value: 0.0) can be constructed and has value semantics by default'
,
(
WidgetTester
tester
)
async
{
final
SemanticsHandle
handle
=
tester
.
ensureSemantics
();
await
tester
.
pumpWidget
(
...
...
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