From a06f80d00ea9328b10b85c6c8a369844bf4a81b0 Mon Sep 17 00:00:00 2001 From: singularity Date: Sun, 1 Aug 2021 00:18:15 +0800 Subject: [PATCH] fix: a tiny RefreshIndicator UI bug --- lib/page/bbs_post.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/page/bbs_post.dart b/lib/page/bbs_post.dart index 4adf0f28..1b5547fb 100644 --- a/lib/page/bbs_post.dart +++ b/lib/page/bbs_post.dart @@ -186,7 +186,7 @@ class _BBSPostDetailState extends State { cupertino: (_, __) => CupertinoPageScaffoldData(resizeToAvoidBottomInset: false), iosContentPadding: false, - iosContentBottomPadding: true, + iosContentBottomPadding: false, backgroundColor: Theme.of(context).scaffoldBackgroundColor, appBar: PlatformAppBarX( title: TopController( @@ -210,7 +210,8 @@ class _BBSPostDetailState extends State { ), ], ), - body: RefreshIndicator( + body: SafeArea( + child: RefreshIndicator( color: Theme.of(context).accentColor, backgroundColor: Theme.of(context).dialogBackgroundColor, onRefresh: () async { @@ -279,7 +280,9 @@ class _BBSPostDetailState extends State { }, errorBuilder: () => _buildErrorWidget(), ),*/ - )), + ), + ), + ), ); }