chore: Design adjustments

This commit is contained in:
Krille 2025-01-26 16:07:52 +01:00
parent 10dc4dc60e
commit 85bebb796c
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 14 additions and 10 deletions

View file

@ -121,10 +121,12 @@ abstract class FluffyThemes {
),
),
),
snackBarTheme: SnackBarThemeData(
behavior: SnackBarBehavior.floating,
width: isColumnMode ? null : FluffyThemes.columnWidth * 1.5,
),
snackBarTheme: isColumnMode
? const SnackBarThemeData(
behavior: SnackBarBehavior.floating,
width: FluffyThemes.columnWidth * 1.5,
)
: const SnackBarThemeData(behavior: SnackBarBehavior.floating),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: colorScheme.secondaryContainer,

View file

@ -246,6 +246,8 @@ class ChatView extends StatelessWidget {
),
),
),
floatingActionButtonLocation:
FloatingActionButtonLocation.miniCenterFloat,
floatingActionButton: controller.showScrollDownButton &&
controller.selectedEvents.isEmpty
? Padding(

View file

@ -34,9 +34,7 @@ class ReplyContent extends StatelessWidget {
timeline != null ? replyEvent.getDisplayEvent(timeline) : replyEvent;
final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor;
final color = theme.brightness == Brightness.dark
? ownMessage
? theme.colorScheme.onTertiaryContainer
: theme.colorScheme.onTertiary
? theme.colorScheme.onTertiaryContainer
: ownMessage
? theme.colorScheme.tertiaryContainer
: theme.colorScheme.tertiary;
@ -84,9 +82,11 @@ class ReplyContent extends StatelessWidget {
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: TextStyle(
color: ownMessage
? theme.colorScheme.onTertiary
: theme.colorScheme.onSurface,
color: theme.brightness == Brightness.dark
? theme.colorScheme.onSurface
: ownMessage
? theme.colorScheme.onTertiary
: theme.colorScheme.onSurface,
fontSize: fontSize,
),
),