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
a1097d70
Unverified
Commit
a1097d70
authored
Aug 20, 2020
by
TheBirb
Committed by
GitHub
Aug 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests (#62635)
parent
bebd7944
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
stepper.dart
packages/flutter/lib/src/material/stepper.dart
+1
-0
stepper_test.dart
packages/flutter/test/material/stepper_test.dart
+29
-0
No files found.
packages/flutter/lib/src/material/stepper.dart
View file @
a1097d70
...
...
@@ -674,6 +674,7 @@ class _StepperState extends State<Stepper> with TickerProviderStateMixin {
),
Expanded
(
child:
ListView
(
physics:
widget
.
physics
,
padding:
const
EdgeInsets
.
all
(
24.0
),
children:
<
Widget
>[
AnimatedSize
(
...
...
packages/flutter/test/material/stepper_test.dart
View file @
a1097d70
...
...
@@ -817,4 +817,33 @@ void main() {
expect
(
buttonMaterial
(
'CANCEL'
).
color
.
value
,
0
);
expect
(
buttonMaterial
(
'CANCEL'
).
textStyle
.
color
.
value
,
0x61ffffff
);
});
testWidgets
(
'Vertical and Horizontal Stepper physics test'
,
(
WidgetTester
tester
)
async
{
const
ScrollPhysics
physics
=
NeverScrollableScrollPhysics
();
for
(
final
StepperType
type
in
StepperType
.
values
)
{
await
tester
.
pumpWidget
(
MaterialApp
(
home:
Material
(
child:
Stepper
(
physics:
physics
,
type:
type
,
steps:
const
<
Step
>[
Step
(
title:
Text
(
'Step 1'
),
content:
SizedBox
(
width:
100.0
,
height:
100.0
,
),
),
],
),
),
),
);
final
ListView
listView
=
tester
.
widget
<
ListView
>(
find
.
descendant
(
of:
find
.
byType
(
Stepper
),
matching:
find
.
byType
(
ListView
)));
expect
(
listView
.
physics
,
physics
);
}
});
}
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