mod: issues #101

This commit is contained in:
guozhigq
2023-11-12 15:24:35 +08:00
parent 27e268b2a0
commit 5d6a935f3d

View File

@ -56,67 +56,72 @@ class _UpPanelState extends State<UpPanel> {
floating: true, floating: true,
pinned: false, pinned: false,
delegate: _SliverHeaderDelegate( delegate: _SliverHeaderDelegate(
height: 90, height: 126,
child: Container( child: Column(
height: 90, children: [
color: Theme.of(context).colorScheme.background, Expanded(
child: Row( child: Padding(
children: [ padding: const EdgeInsets.only(left: 16, right: 16),
Expanded( child: Row(
child: ListView( mainAxisAlignment: MainAxisAlignment.spaceBetween,
scrollDirection: Axis.horizontal, crossAxisAlignment: CrossAxisAlignment.center,
controller: scrollController,
children: [ children: [
const SizedBox(width: 10), const Text('最新关注'),
if (liveList.isNotEmpty) ...[ GestureDetector(
for (int i = 0; i < liveList.length; i++) ...[ onTap: () {
upItemBuild(liveList[i], i) feedBack();
], Get.toNamed('/follow?mid=${userInfo.mid}');
VerticalDivider( },
indent: 20, child: Container(
endIndent: 40, padding: const EdgeInsets.only(top: 0, bottom: 4),
width: 26, child: Text(
color: Theme.of(context) '查看全部',
.colorScheme style: TextStyle(
.primary color: Theme.of(context).colorScheme.outline),
.withOpacity(0.5), ),
), ),
], ),
for (int i = 0; i < upList.length; i++) ...[
upItemBuild(upList[i], i)
],
const SizedBox(width: 10),
], ],
), ),
), ),
Material( ),
child: InkWell( Container(
onTap: () => { height: 90,
feedBack(), color: Theme.of(context).colorScheme.background,
Get.toNamed('/follow?mid=${userInfo.mid}') child: Row(
}, children: [
child: Container( Expanded(
height: 100, child: ListView(
padding: const EdgeInsets.only(left: 10, right: 10), scrollDirection: Axis.horizontal,
color: Theme.of(context) controller: scrollController,
.colorScheme children: [
.secondaryContainer const SizedBox(width: 10),
.withOpacity(0.3), if (liveList.isNotEmpty) ...[
child: Center( for (int i = 0; i < liveList.length; i++) ...[
child: Text( upItemBuild(liveList[i], i)
'全部', ],
style: TextStyle( VerticalDivider(
indent: 20,
endIndent: 40,
width: 26,
color: Theme.of(context) color: Theme.of(context)
.colorScheme .colorScheme
.onSecondaryContainer), .primary
), .withOpacity(0.5),
),
],
for (int i = 0; i < upList.length; i++) ...[
upItemBuild(upList[i], i)
],
const SizedBox(width: 10),
],
), ),
), ),
), ],
), ),
], ),
)), ],
), )),
); );
} }