Skip to content

Commit cb610e5

Browse files
committed
一些报错
1 parent cd83a94 commit cb610e5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

assets/images/delete.png

-222 Bytes
Loading

lib/ui/goods_detail/search_index_page.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ class _SearchIndexPageState extends State<SearchIndexPage> {
276276
children: <Widget>[
277277
Container(height: _searchHeight),
278278
Container(
279+
width: double.infinity,
279280
color: backWhite,
280281
padding: EdgeInsets.fromLTRB(
281282
10, MediaQuery.of(context).padding.top + 15, 10, 10),
@@ -301,7 +302,7 @@ class _SearchIndexPageState extends State<SearchIndexPage> {
301302
height: 20,
302303
),
303304
),
304-
)
305+
),
305306
],
306307
),
307308
),

lib/ui/mine/points_center_page.dart

+7-4
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ class _PointCenterPageState extends State<PointCenterPage> {
128128
_buildChangePoint(),
129129
singleSliverWidget(_rcmTitle()),
130130
singleSliverWidget(_buildTitle('精选超值年购', '', '')),
131-
_rcmdOne(),
131+
if (_data.memLayawayVO != null) _rcmdOne(),
132+
132133
singleSliverWidget(_rcmAll()),
133134
singleSliverWidget(SizedBox(height: 25)),
134135
singleSliverWidget(_buildTitle('精选返积分商品', '', '')),
@@ -604,10 +605,12 @@ class _PointCenterPageState extends State<PointCenterPage> {
604605
}
605606

606607
_rcmdOne() {
607-
return SliverList(
608-
delegate: SliverChildBuilderDelegate((BuildContext context, int index) {
608+
return SliverToBoxAdapter(
609+
child: SliverList(
610+
delegate:
611+
SliverChildBuilderDelegate((BuildContext context, int index) {
609612
return _rcmdOneItem(index);
610-
}, childCount: _data.memLayawayVO!.layawayList!.length));
613+
}, childCount: _data.memLayawayVO!.layawayList!.length)));
611614
}
612615

613616
_rcmdOneItem(int index) {

0 commit comments

Comments
 (0)