mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
chore: Add gradient to chat background
This commit is contained in:
parent
576d46eb4c
commit
f6c2fa8588
@ -145,6 +145,7 @@ class ChatView extends StatelessWidget {
|
||||
context: context, future: () => controller.room!.join());
|
||||
}
|
||||
final bottomSheetPadding = FluffyThemes.isColumnMode(context) ? 16.0 : 8.0;
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
|
||||
return VWidgetGuard(
|
||||
onSystemPop: (redirector) async {
|
||||
@ -213,6 +214,20 @@ class ChatView extends StatelessWidget {
|
||||
height: double.infinity,
|
||||
fit: BoxFit.cover,
|
||||
filterQuality: FilterQuality.medium,
|
||||
)
|
||||
else
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
colors: [
|
||||
colorScheme.primaryContainer.withAlpha(32),
|
||||
colorScheme.secondaryContainer.withAlpha(32),
|
||||
colorScheme.tertiaryContainer.withAlpha(32),
|
||||
colorScheme.primaryContainer.withAlpha(32),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
SafeArea(
|
||||
child: Column(
|
||||
|
Loading…
Reference in New Issue
Block a user