chore: Design adjustments
This commit is contained in:
parent
10dc4dc60e
commit
85bebb796c
3 changed files with 14 additions and 10 deletions
|
|
@ -121,10 +121,12 @@ abstract class FluffyThemes {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
snackBarTheme: SnackBarThemeData(
|
snackBarTheme: isColumnMode
|
||||||
behavior: SnackBarBehavior.floating,
|
? const SnackBarThemeData(
|
||||||
width: isColumnMode ? null : FluffyThemes.columnWidth * 1.5,
|
behavior: SnackBarBehavior.floating,
|
||||||
),
|
width: FluffyThemes.columnWidth * 1.5,
|
||||||
|
)
|
||||||
|
: const SnackBarThemeData(behavior: SnackBarBehavior.floating),
|
||||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: colorScheme.secondaryContainer,
|
backgroundColor: colorScheme.secondaryContainer,
|
||||||
|
|
|
||||||
|
|
@ -246,6 +246,8 @@ class ChatView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
floatingActionButtonLocation:
|
||||||
|
FloatingActionButtonLocation.miniCenterFloat,
|
||||||
floatingActionButton: controller.showScrollDownButton &&
|
floatingActionButton: controller.showScrollDownButton &&
|
||||||
controller.selectedEvents.isEmpty
|
controller.selectedEvents.isEmpty
|
||||||
? Padding(
|
? Padding(
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,7 @@ class ReplyContent extends StatelessWidget {
|
||||||
timeline != null ? replyEvent.getDisplayEvent(timeline) : replyEvent;
|
timeline != null ? replyEvent.getDisplayEvent(timeline) : replyEvent;
|
||||||
final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor;
|
final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor;
|
||||||
final color = theme.brightness == Brightness.dark
|
final color = theme.brightness == Brightness.dark
|
||||||
? ownMessage
|
? theme.colorScheme.onTertiaryContainer
|
||||||
? theme.colorScheme.onTertiaryContainer
|
|
||||||
: theme.colorScheme.onTertiary
|
|
||||||
: ownMessage
|
: ownMessage
|
||||||
? theme.colorScheme.tertiaryContainer
|
? theme.colorScheme.tertiaryContainer
|
||||||
: theme.colorScheme.tertiary;
|
: theme.colorScheme.tertiary;
|
||||||
|
|
@ -84,9 +82,11 @@ class ReplyContent extends StatelessWidget {
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: ownMessage
|
color: theme.brightness == Brightness.dark
|
||||||
? theme.colorScheme.onTertiary
|
? theme.colorScheme.onSurface
|
||||||
: theme.colorScheme.onSurface,
|
: ownMessage
|
||||||
|
? theme.colorScheme.onTertiary
|
||||||
|
: theme.colorScheme.onSurface,
|
||||||
fontSize: fontSize,
|
fontSize: fontSize,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue