mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-02 14:26:12 -04:00
more log work
This commit is contained in:
parent
9c1d780d93
commit
39b0262d0e
35 changed files with 906 additions and 606 deletions
|
@ -29,8 +29,7 @@ class ChatSingleContactItemWidget extends StatelessWidget {
|
|||
BuildContext context,
|
||||
) {
|
||||
final theme = Theme.of(context);
|
||||
final scale = theme.extension<ScaleScheme>()!;
|
||||
final scaleConfig = theme.extension<ScaleConfig>()!;
|
||||
final scaleTheme = Theme.of(context).extension<ScaleTheme>()!;
|
||||
|
||||
final activeChatCubit = context.watch<ActiveChatCubit>();
|
||||
final selected = activeChatCubit.state == _localConversationRecordKey;
|
||||
|
@ -44,18 +43,22 @@ class ChatSingleContactItemWidget extends StatelessWidget {
|
|||
? proto.Availability.AVAILABILITY_UNSPECIFIED
|
||||
: _contact.profile.availability;
|
||||
|
||||
final scaleTileTheme = scaleTheme.tileTheme(
|
||||
disabled: _disabled,
|
||||
selected: selected,
|
||||
scaleKind: ScaleKind.secondary);
|
||||
|
||||
final avatar = AvatarWidget(
|
||||
name: name,
|
||||
size: 34,
|
||||
borderColor: _disabled
|
||||
? scale.grayScale.primaryText
|
||||
: scale.secondaryScale.primaryText,
|
||||
borderColor: scaleTileTheme.borderColor,
|
||||
foregroundColor: _disabled
|
||||
? scale.grayScale.primaryText
|
||||
: scale.secondaryScale.primaryText,
|
||||
backgroundColor:
|
||||
_disabled ? scale.grayScale.primary : scale.secondaryScale.primary,
|
||||
scaleConfig: scaleConfig,
|
||||
? scaleTheme.scheme.grayScale.primaryText
|
||||
: scaleTheme.scheme.secondaryScale.primaryText,
|
||||
backgroundColor: _disabled
|
||||
? scaleTheme.scheme.grayScale.primary
|
||||
: scaleTheme.scheme.secondaryScale.primary,
|
||||
scaleConfig: scaleTheme.config,
|
||||
textStyle: theme.textTheme.titleLarge!,
|
||||
);
|
||||
|
||||
|
@ -69,9 +72,7 @@ class ChatSingleContactItemWidget extends StatelessWidget {
|
|||
leading: avatar,
|
||||
trailing: AvailabilityWidget(
|
||||
availability: availability,
|
||||
color: _disabled
|
||||
? scale.grayScale.primaryText
|
||||
: scale.secondaryScale.primaryText,
|
||||
color: scaleTileTheme.textColor,
|
||||
),
|
||||
onTap: () {
|
||||
singleFuture(activeChatCubit, () async {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue