chore: Add gradient to chat background
This commit is contained in:
parent
a35229bf7d
commit
2f71b0ac1d
1 changed files with 15 additions and 0 deletions
|
|
@ -145,6 +145,7 @@ class ChatView extends StatelessWidget {
|
||||||
context: context, future: () => controller.room!.join());
|
context: context, future: () => controller.room!.join());
|
||||||
}
|
}
|
||||||
final bottomSheetPadding = FluffyThemes.isColumnMode(context) ? 16.0 : 8.0;
|
final bottomSheetPadding = FluffyThemes.isColumnMode(context) ? 16.0 : 8.0;
|
||||||
|
final colorScheme = Theme.of(context).colorScheme;
|
||||||
|
|
||||||
return VWidgetGuard(
|
return VWidgetGuard(
|
||||||
onSystemPop: (redirector) async {
|
onSystemPop: (redirector) async {
|
||||||
|
|
@ -213,6 +214,20 @@ class ChatView extends StatelessWidget {
|
||||||
height: double.infinity,
|
height: double.infinity,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
filterQuality: FilterQuality.medium,
|
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(
|
SafeArea(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue