fluffychat merge
This commit is contained in:
commit
612ab99ea8
8 changed files with 9 additions and 7 deletions
|
|
@ -7,6 +7,8 @@ import 'app_config.dart';
|
|||
abstract class FluffyThemes {
|
||||
static const double columnWidth = 380.0;
|
||||
|
||||
static const double maxTimelineWidth = columnWidth * 2;
|
||||
|
||||
// #Pangea
|
||||
// static const double navRailWidth = 80.0;
|
||||
static const double navRailWidth = 72.0;
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ class ChatView extends StatelessWidget {
|
|||
Container(
|
||||
margin: EdgeInsets.all(bottomSheetPadding),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: FluffyThemes.columnWidth * 2.5,
|
||||
maxWidth: FluffyThemes.maxTimelineWidth,
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Material(
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ class Message extends StatelessWidget {
|
|||
onSwipe: (_) => onSwipe(),
|
||||
child: Container(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: FluffyThemes.columnWidth * 2.5,
|
||||
maxWidth: FluffyThemes.maxTimelineWidth,
|
||||
),
|
||||
padding: EdgeInsets.only(
|
||||
left: 8.0,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class SeenByRow extends StatelessWidget {
|
|||
alignment: Alignment.center,
|
||||
child: AnimatedContainer(
|
||||
constraints:
|
||||
const BoxConstraints(maxWidth: FluffyThemes.columnWidth * 2.5),
|
||||
const BoxConstraints(maxWidth: FluffyThemes.maxTimelineWidth),
|
||||
height: seenByUsers.isEmpty ? 0 : 24,
|
||||
duration: seenByUsers.isEmpty
|
||||
? Duration.zero
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class TypingIndicators extends StatelessWidget {
|
|||
alignment: Alignment.center,
|
||||
child: AnimatedContainer(
|
||||
constraints:
|
||||
const BoxConstraints(maxWidth: FluffyThemes.columnWidth * 2.5),
|
||||
const BoxConstraints(maxWidth: FluffyThemes.maxTimelineWidth),
|
||||
height: typingUsers.isEmpty ? 0 : avatarSize + 8,
|
||||
duration: FluffyThemes.animationDuration,
|
||||
curve: FluffyThemes.animationCurve,
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ class ActivityPlanMessage extends StatelessWidget {
|
|||
onSwipe: (_) {},
|
||||
child: Container(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: FluffyThemes.columnWidth * 2.5,
|
||||
maxWidth: FluffyThemes.maxTimelineWidth,
|
||||
),
|
||||
padding: const EdgeInsets.only(
|
||||
left: 8.0,
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class ChatInputBarState extends State<ChatInputBar> {
|
|||
right: widget.padding,
|
||||
),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: FluffyThemes.columnWidth * 2.5,
|
||||
maxWidth: FluffyThemes.maxTimelineWidth,
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Material(
|
||||
|
|
|
|||
|
|
@ -533,7 +533,7 @@ class MessageSelectionPositionerState extends State<MessageSelectionPositioner>
|
|||
const double messageMargin = 16.0;
|
||||
// widget.event.isActivityMessage ? 0 : Avatar.defaultSize + 16 + 8;
|
||||
final bool showingDetails = widget.chatController.displayChatDetailsColumn;
|
||||
final double totalMaxWidth = (FluffyThemes.columnWidth * 2.5) -
|
||||
final double totalMaxWidth = FluffyThemes.maxTimelineWidth -
|
||||
(showingDetails ? FluffyThemes.columnWidth : 0) -
|
||||
messageMargin;
|
||||
double? maxWidth;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue