fix choice array background color
This commit is contained in:
parent
9f30e26a2a
commit
5c95a4c62b
3 changed files with 8 additions and 9 deletions
|
|
@ -403,9 +403,12 @@ class ChatView extends StatelessWidget {
|
|||
alignment: Alignment.center,
|
||||
child: Material(
|
||||
clipBehavior: Clip.hardEdge,
|
||||
color: controller.selectedEvents.isNotEmpty
|
||||
? theme.colorScheme.tertiaryContainer
|
||||
: theme.colorScheme.surfaceContainerHigh,
|
||||
// #Pangea
|
||||
// color: controller.selectedEvents.isNotEmpty
|
||||
// ? theme.colorScheme.tertiaryContainer
|
||||
// : theme.colorScheme.surfaceContainerHigh,
|
||||
color: theme.colorScheme.surfaceContainerHigh,
|
||||
// Pangea#
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(24),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -146,10 +146,8 @@ class ChoiceItem extends StatelessWidget {
|
|||
horizontal: 8,
|
||||
vertical: 4,
|
||||
),
|
||||
backgroundColor: isSelected
|
||||
? (entry.value.color?.withAlpha(50) ??
|
||||
theme.colorScheme.primary.withAlpha(10))
|
||||
: null,
|
||||
backgroundColor: entry.value.color?.withAlpha(50) ??
|
||||
theme.colorScheme.primary.withAlpha(10),
|
||||
textStyle: BotStyle.text(context),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||
|
|
|
|||
|
|
@ -187,8 +187,6 @@ class PracticeSelection {
|
|||
activityTokens.add(t);
|
||||
}
|
||||
|
||||
debugPrint("TOKENS: ${activityTokens.map((e) => e.text.content).toList()}");
|
||||
|
||||
return [
|
||||
PracticeTarget(
|
||||
activityType: activityType,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue