Skip to content

Commit

Permalink
indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
LongCatIsLooong committed May 7, 2019
1 parent 5578ad2 commit 128c12b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
36 changes: 18 additions & 18 deletions packages/flutter/test/material/scrollbar_paint_test.dart
Expand Up @@ -45,19 +45,19 @@ void main() {

testWidgets('workds with MaterialApp and Scaffold', (WidgetTester tester) async {
await tester.pumpWidget(MaterialApp(
home: MediaQuery(
data: const MediaQueryData(
padding: EdgeInsets.fromLTRB(0, 20, 0, 34)
),
child: Scaffold(
appBar: AppBar(title: const Text('Title')),
body: Scrollbar(
child: ListView(
children: const <Widget>[SizedBox(width: 4000, height: 4000)]
)
home: MediaQuery(
data: const MediaQueryData(
padding: EdgeInsets.fromLTRB(0, 20, 0, 34)
),
child: Scaffold(
appBar: AppBar(title: const Text('Title')),
body: Scrollbar(
child: ListView(
children: const <Widget>[SizedBox(width: 4000, height: 4000)]
)
)
)
)
));

final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(ListView)));
Expand All @@ -67,14 +67,14 @@ void main() {
await tester.pump();
await tester.pump(const Duration(milliseconds: 500));

expect(find.byType(Scrollbar), paints..rect(rect:
const Rect.fromLTWH(
800.0 - 6, // screen width - thickness
0, // the paint area starts from the bottom of the app bar
6, // thickness
// 56 being the height of the app bar
(600.0 - 56 - 34 - 20) / 4000 * (600 - 56 - 34 - 20)
)
expect(find.byType(Scrollbar), paints..rect(
rect: const Rect.fromLTWH(
800.0 - 6, // screen width - thickness
0, // the paint area starts from the bottom of the app bar
6, // thickness
// 56 being the height of the app bar
(600.0 - 56 - 34 - 20) / 4000 * (600 - 56 - 34 - 20)
)
));
});
}
4 changes: 2 additions & 2 deletions packages/flutter/test/widgets/scrollbar_test.dart
Expand Up @@ -215,8 +215,8 @@ void main() {
expect(
margin,
textDirection == TextDirection.ltr
? size.width - rect.right
: rect.left
? size.width - rect.right
: rect.left
);
break;
case AxisDirection.left:
Expand Down
30 changes: 15 additions & 15 deletions packages/flutter/test/widgets/slivers_evil_test.dart
Expand Up @@ -130,21 +130,21 @@ void main() {
SliverToBoxAdapter(child: Container(height: 5.0)),
SliverList(
delegate: SliverChildListDelegate(<Widget>[
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
Container(height: 50.0),
]),
),
SliverPersistentHeader(delegate: TestSliverPersistentHeaderDelegate(250.0)),
Expand Down

0 comments on commit 128c12b

Please sign in to comment.