mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-03 00:34:11 +01:00
design: More clear chat background and rounded popup menu
This commit is contained in:
parent
37bf943ac7
commit
b4df8c129d
@ -221,10 +221,10 @@ class ChatView extends StatelessWidget {
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
colors: [
|
||||
colorScheme.primaryContainer.withAlpha(32),
|
||||
colorScheme.secondaryContainer.withAlpha(32),
|
||||
colorScheme.tertiaryContainer.withAlpha(32),
|
||||
colorScheme.primaryContainer.withAlpha(32),
|
||||
colorScheme.primaryContainer.withAlpha(64),
|
||||
colorScheme.secondaryContainer.withAlpha(64),
|
||||
colorScheme.tertiaryContainer.withAlpha(64),
|
||||
colorScheme.primaryContainer.withAlpha(64),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -1,5 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:fluffychat/config/app_config.dart';
|
||||
|
||||
class M2PopupMenuButton<T> extends StatelessWidget {
|
||||
final List<PopupMenuEntry<T>> Function(BuildContext) itemBuilder;
|
||||
final T? initialValue;
|
||||
@ -28,6 +30,9 @@ class M2PopupMenuButton<T> extends StatelessWidget {
|
||||
useMaterial3: false,
|
||||
popupMenuTheme: PopupMenuThemeData(
|
||||
color: theme.colorScheme.surface,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||
),
|
||||
elevation: theme.appBarTheme.scrolledUnderElevation,
|
||||
textStyle: theme.textTheme.bodyText1,
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user