chore: Make max timeline width smaller
This commit is contained in:
parent
e55adbd65c
commit
7673795077
5 changed files with 6 additions and 4 deletions
|
|
@ -6,6 +6,8 @@ import 'app_config.dart';
|
|||
abstract class FluffyThemes {
|
||||
static const double columnWidth = 380.0;
|
||||
|
||||
static const double maxTimelineWidth = columnWidth * 2;
|
||||
|
||||
static const double navRailWidth = 80.0;
|
||||
|
||||
static bool isColumnModeByWidth(double width) =>
|
||||
|
|
|
|||
|
|
@ -306,7 +306,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(
|
||||
|
|
|
|||
|
|
@ -205,7 +205,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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue