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,33 +56,34 @@ 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,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
const Text('最新关注'), const Text('最新关注'),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
feedBack(); feedBack();
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(
color: Theme.of(context).colorScheme.outline), color: Theme.of(context).colorScheme.outline),
),
), ),
), ),
], ),
), ],
), ),
), ),
Container( Container(