Remove shrinkWrap from flexible_space_bar_test.dart (#132173)
See title.
This commit is contained in:
parent
6da6fbf5a8
commit
702b78c6be
@ -910,21 +910,17 @@ class _SubCategoryScreenViewState extends State<SubCategoryScreenView>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SliverToBoxAdapter(child: SizedBox(height: 12)),
|
const SliverToBoxAdapter(child: SizedBox(height: 12)),
|
||||||
SliverToBoxAdapter(
|
SliverGrid.builder(
|
||||||
child: GridView.builder(
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
|
||||||
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
|
crossAxisCount: 3,
|
||||||
crossAxisCount: 3,
|
|
||||||
),
|
|
||||||
shrinkWrap: true,
|
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
|
||||||
itemCount: 300,
|
|
||||||
itemBuilder: (BuildContext context, int index) {
|
|
||||||
return Card(
|
|
||||||
color: Colors.amber,
|
|
||||||
child: Center(child: Text('$index')),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
|
itemCount: 300,
|
||||||
|
itemBuilder: (BuildContext context, int index) {
|
||||||
|
return Card(
|
||||||
|
color: Colors.amber,
|
||||||
|
child: Center(child: Text('$index')),
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
const SliverToBoxAdapter(child: SizedBox(height: 12)),
|
const SliverToBoxAdapter(child: SizedBox(height: 12)),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user