Skip to content

Commit

Permalink
TW-1996-removed-activated-status-in-accounts-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledNjim committed Aug 21, 2024
1 parent 9fb354a commit 0a74bef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
20 changes: 6 additions & 14 deletions lib/pages/new_private_chat/widget/contact_status_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class ContactStatusWidget extends StatelessWidget {
required this.status,
});

final Color? activeColor = LinagoraRefColors.material().secondary[40];
final Color? inactiveColor = LinagoraRefColors.material().neutral[60];

@override
Expand All @@ -26,21 +25,14 @@ class ContactStatusWidget extends StatelessWidget {
SvgPicture.asset(
ImagePaths.icStatus,
// ignore: deprecated_member_use
color: status == ContactStatus.active ? activeColor : inactiveColor,
color: inactiveColor,
),
status == ContactStatus.active
? Text(
" ${L10n.of(context)!.online}",
style: Theme.of(context).textTheme.bodySmall?.copyWith(
color: activeColor,
),
)
: Text(
" ${L10n.of(context)!.inactive}",
style: Theme.of(context).textTheme.bodySmall?.copyWith(
color: inactiveColor,
),
Text(
" ${L10n.of(context)!.inactive}",
style: Theme.of(context).textTheme.bodySmall?.copyWith(
color: inactiveColor,
),
),
],
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ExpansionContactListTile extends StatelessWidget {
),
],
const SizedBox(width: 8.0),
if (contact.status != null)
if (contact.status == ContactStatus.inactive)
ContactStatusWidget(
status: contact.status!,
),
Expand Down

0 comments on commit 0a74bef

Please sign in to comment.