Skip to content

Commit e27caad

Browse files
committed
Add comma after parenthesis and run formatter
1 parent 8e41248 commit e27caad

File tree

2 files changed

+50
-42
lines changed

2 files changed

+50
-42
lines changed

experimental/material_3_demo/lib/component_screen.dart

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,22 @@ class FirstComponentList extends StatelessWidget {
4949
child: CustomScrollView(
5050
slivers: [
5151
SliverPadding(
52-
padding: showSecondList
53-
? const EdgeInsetsDirectional.only(end: smallSpacing)
54-
: EdgeInsets.zero,
55-
sliver: SliverList(
56-
delegate: BuildSlivers(
57-
heights: heights,
58-
builder: (context, index) {
59-
return _CacheHeight(
60-
heights: heights,
61-
index: index,
62-
child: children[index],
63-
);
64-
}))),
52+
padding: showSecondList
53+
? const EdgeInsetsDirectional.only(end: smallSpacing)
54+
: EdgeInsets.zero,
55+
sliver: SliverList(
56+
delegate: BuildSlivers(
57+
heights: heights,
58+
builder: (context, index) {
59+
return _CacheHeight(
60+
heights: heights,
61+
index: index,
62+
child: children[index],
63+
);
64+
},
65+
),
66+
),
67+
),
6568
],
6669
),
6770
);
@@ -95,14 +98,15 @@ class SecondComponentList extends StatelessWidget {
9598
padding: const EdgeInsetsDirectional.only(end: smallSpacing),
9699
sliver: SliverList(
97100
delegate: BuildSlivers(
98-
heights: heights,
99-
builder: (context, index) {
100-
return _CacheHeight(
101-
heights: heights,
102-
index: index,
103-
child: children[index],
104-
);
105-
}),
101+
heights: heights,
102+
builder: (context, index) {
103+
return _CacheHeight(
104+
heights: heights,
105+
index: index,
106+
child: children[index],
107+
);
108+
},
109+
),
106110
),
107111
),
108112
],

material_3_demo/lib/component_screen.dart

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,22 @@ class FirstComponentList extends StatelessWidget {
4949
child: CustomScrollView(
5050
slivers: [
5151
SliverPadding(
52-
padding: showSecondList
53-
? const EdgeInsetsDirectional.only(end: smallSpacing)
54-
: EdgeInsets.zero,
55-
sliver: SliverList(
56-
delegate: BuildSlivers(
57-
heights: heights,
58-
builder: (context, index) {
59-
return _CacheHeight(
60-
heights: heights,
61-
index: index,
62-
child: children[index],
63-
);
64-
}))),
52+
padding: showSecondList
53+
? const EdgeInsetsDirectional.only(end: smallSpacing)
54+
: EdgeInsets.zero,
55+
sliver: SliverList(
56+
delegate: BuildSlivers(
57+
heights: heights,
58+
builder: (context, index) {
59+
return _CacheHeight(
60+
heights: heights,
61+
index: index,
62+
child: children[index],
63+
);
64+
},
65+
),
66+
),
67+
),
6568
],
6669
),
6770
);
@@ -95,14 +98,15 @@ class SecondComponentList extends StatelessWidget {
9598
padding: const EdgeInsetsDirectional.only(end: smallSpacing),
9699
sliver: SliverList(
97100
delegate: BuildSlivers(
98-
heights: heights,
99-
builder: (context, index) {
100-
return _CacheHeight(
101-
heights: heights,
102-
index: index,
103-
child: children[index],
104-
);
105-
}),
101+
heights: heights,
102+
builder: (context, index) {
103+
return _CacheHeight(
104+
heights: heights,
105+
index: index,
106+
child: children[index],
107+
);
108+
},
109+
),
106110
),
107111
),
108112
],

0 commit comments

Comments
 (0)