Merge pull request #648 from pangeachat/account-for-sidebar
account for chat details column showing in message overlay
This commit is contained in:
commit
269ae5b2eb
1 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:fluffychat/config/setting_keys.dart';
|
||||
import 'package:fluffychat/config/themes.dart';
|
||||
import 'package:fluffychat/pages/chat/chat.dart';
|
||||
import 'package:fluffychat/pages/chat/events/message.dart';
|
||||
|
|
@ -189,13 +190,18 @@ class MessageSelectionOverlayState extends State<MessageSelectionOverlay> {
|
|||
),
|
||||
);
|
||||
|
||||
final bool showDetails = Matrix.of(context)
|
||||
.store
|
||||
.getBool(SettingKeys.displayChatDetailsColumn) ??
|
||||
false;
|
||||
|
||||
return Expanded(
|
||||
child: Stack(
|
||||
children: [
|
||||
AnimatedPositioned(
|
||||
duration: FluffyThemes.animationDuration,
|
||||
left: 0,
|
||||
right: 0,
|
||||
right: showDetails ? FluffyThemes.columnWidth : 0,
|
||||
bottom: adjustedOverlayBottomOffset == -1
|
||||
? overlayBottomOffset
|
||||
: adjustedOverlayBottomOffset,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue