fix: 消息页面夜间模式异常 issues #309 | 包含撤回消息时显示异常

This commit is contained in:
guozhigq
2023-12-19 07:47:18 +08:00
parent 6dd1360a76
commit ada1aa5d1d
4 changed files with 108 additions and 81 deletions

View File

@ -93,6 +93,9 @@ class _WhisperDetailPageState extends State<WhisperDetailPage> {
future: _futureBuilderFuture,
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.data == null) {
return const SizedBox();
}
Map data = snapshot.data as Map;
if (data['status']) {
List messageList = _whisperDetailController.messageList;
@ -138,7 +141,6 @@ class _WhisperDetailPageState extends State<WhisperDetailPage> {
bottom: MediaQuery.of(context).padding.bottom,
),
decoration: BoxDecoration(
color: Colors.white,
border: Border(
top: BorderSide(
width: 4,