Skip to content

Commit

Permalink
fixup! TW-1830 changed text when user has no contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledNjim committed Jun 11, 2024
1 parent b9555b9 commit e9f5406
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions lib/pages/new_private_chat/widget/no_contacts_found.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,32 @@ class NoContactsFound extends StatelessWidget {
),
keyword != null
? Text.rich(
TextSpan(
style: Theme.of(context).textTheme.bodyMedium,
children: [
TextSpan(
children: [
TextSpan(text: L10n.of(context)!.searchResultNotFound1),
TextSpan(text: L10n.of(context)!.searchResultNotFound2),
TextSpan(text: L10n.of(context)!.searchResultNotFound3),
TextSpan(text: L10n.of(context)!.searchResultNotFound4),
TextSpan(
text: L10n.of(context)!.searchResultNotFound5,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: Theme.of(context).colorScheme.primary,
TextSpan(
style: Theme.of(context).textTheme.bodyMedium,
children: [
TextSpan(
children: [
TextSpan(
text: L10n.of(context)!.searchResultNotFound1),
TextSpan(
text: L10n.of(context)!.searchResultNotFound2),
TextSpan(
text: L10n.of(context)!.searchResultNotFound3),
TextSpan(
text: L10n.of(context)!.searchResultNotFound4),
TextSpan(
text: L10n.of(context)!.searchResultNotFound5,
style: Theme.of(context)
.textTheme
.bodyMedium
?.copyWith(
color: Theme.of(context).colorScheme.primary,
),
),
),
],
),
],
),
],
),
],
),
)
: const SizedBox.shrink(),
const SizedBox(
Expand Down

0 comments on commit e9f5406

Please sign in to comment.