🐛 Bug fixes with background image

This commit is contained in:
LittleSheep 2024-10-06 19:41:44 +08:00
parent f5fbe1f483
commit 66f2f33394
3 changed files with 138 additions and 132 deletions

View File

@ -26,6 +26,7 @@ import 'package:solian/widgets/chat/chat_event_list.dart';
import 'package:solian/widgets/chat/chat_message_input.dart';
import 'package:solian/widgets/chat/chat_typing_indicator.dart';
import 'package:solian/widgets/current_state_action.dart';
import 'package:solian/widgets/root_container.dart';
class ChannelChatScreen extends StatefulWidget {
final String alias;
@ -217,7 +218,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
);
}
return Scaffold(
return RootContainer(
child: Scaffold(
appBar: AppBar(
leading: AppBarLeadingButton.adaptive(context),
title: AppBarTitle(title),
@ -253,7 +255,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
.then((value) {
if (value == false) AppRouter.instance.pop();
if (value != null) {
final resp = Channel.fromJson(value as Map<String, dynamic>);
final resp =
Channel.fromJson(value as Map<String, dynamic>);
_getChannel(alias: resp.alias);
}
});
@ -290,7 +293,8 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
Expanded(
child: ChatEventList(
noAnimated:
_prefs.getBool('non_animated_message_list') ?? false,
_prefs.getBool('non_animated_message_list') ??
false,
scope: widget.realm,
channel: _channel!,
chatController: _chatController,
@ -356,6 +360,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen>
],
);
}),
),
);
}

View File

@ -319,6 +319,7 @@ class AttachmentListEntry extends StatelessWidget {
width: width ?? MediaQuery.of(context).size.width,
height: height,
decoration: BoxDecoration(
color: Colors.transparent,
border: showBorder
? Border.symmetric(
vertical: BorderSide(

View File

@ -27,7 +27,7 @@ class RootContainer extends StatelessWidget {
backgroundBlendMode: BlendMode.darken,
color: Theme.of(context).colorScheme.surface,
image: DecorationImage(
opacity: 0.5,
opacity: 0.2,
image: FileImage(file),
fit: BoxFit.cover,
),