fix(mining-app): 修复贡献值明细筛选栏溢出问题
使用 SingleChildScrollView 包装筛选栏,支持横向滚动 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c02d0b4c3c
commit
2b7a30983e
|
|
@ -95,17 +95,21 @@ class _ContributionRecordsListPageState extends ConsumerState<ContributionRecord
|
||||||
Widget _buildFilterBar() {
|
Widget _buildFilterBar() {
|
||||||
return Container(
|
return Container(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||||
child: Row(
|
child: SingleChildScrollView(
|
||||||
children: [
|
scrollDirection: Axis.horizontal,
|
||||||
_buildFilterChip('全部', null),
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
const SizedBox(width: 8),
|
child: Row(
|
||||||
_buildFilterChip('本人', ContributionSourceType.personal),
|
children: [
|
||||||
const SizedBox(width: 8),
|
_buildFilterChip('全部', null),
|
||||||
_buildFilterChip('同伴下贡献值', ContributionSourceType.teamLevel),
|
const SizedBox(width: 8),
|
||||||
const SizedBox(width: 8),
|
_buildFilterChip('本人', ContributionSourceType.personal),
|
||||||
_buildFilterChip('同伴上贡献值', ContributionSourceType.teamBonus),
|
const SizedBox(width: 8),
|
||||||
],
|
_buildFilterChip('同伴下贡献值', ContributionSourceType.teamLevel),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
_buildFilterChip('同伴上贡献值', ContributionSourceType.teamBonus),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue