fix: 动态页背景色

This commit is contained in:
guozhigq
2023-11-12 17:20:42 +08:00
parent e5342c386f
commit 0ed4e33934
2 changed files with 33 additions and 23 deletions

View File

@ -231,6 +231,15 @@ class _DynamicsPageState extends State<DynamicsPage>
} }
}, },
), ),
SliverToBoxAdapter(
child: Container(
height: 6,
color: Theme.of(context)
.colorScheme
.onInverseSurface
.withOpacity(0.5),
),
),
FutureBuilder( FutureBuilder(
future: _futureBuilderFuture, future: _futureBuilderFuture,
builder: (context, snapshot) { builder: (context, snapshot) {

View File

@ -56,11 +56,13 @@ class _UpPanelState extends State<UpPanel> {
floating: true, floating: true,
pinned: false, pinned: false,
delegate: _SliverHeaderDelegate( delegate: _SliverHeaderDelegate(
height: 126, height: 124,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Expanded( Container(
child: Padding( color: Theme.of(context).colorScheme.background,
padding: const EdgeInsets.only(left: 16, right: 16), padding: const EdgeInsets.only(left: 16, right: 16),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -73,7 +75,7 @@ class _UpPanelState extends State<UpPanel> {
Get.toNamed('/follow?mid=${userInfo.mid}'); Get.toNamed('/follow?mid=${userInfo.mid}');
}, },
child: Container( child: Container(
padding: const EdgeInsets.only(top: 0, bottom: 4), padding: const EdgeInsets.only(top: 5, bottom: 5),
child: Text( child: Text(
'查看全部', '查看全部',
style: TextStyle( style: TextStyle(
@ -84,7 +86,6 @@ class _UpPanelState extends State<UpPanel> {
], ],
), ),
), ),
),
Container( Container(
height: 90, height: 90,
color: Theme.of(context).colorScheme.background, color: Theme.of(context).colorScheme.background,