File tree Expand file tree Collapse file tree 2 files changed +50
-42
lines changed
experimental/material_3_demo/lib Expand file tree Collapse file tree 2 files changed +50
-42
lines changed Original file line number Diff line number Diff 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 ],
Original file line number Diff line number Diff 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 ],
You can’t perform that action at this time.
0 commit comments