Skip to content

Commit

Permalink
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 10, 2024
1 parent 6a3421e commit b9555b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion assets/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -3063,5 +3063,6 @@
"switchAccounts": "Switch accounts",
"selectAccount": "Select account",
"privacyPolicy": "Privacy Policy",
"byContinuingYourAgreeingToOur": "By continuing, you're agreeing to our"
"byContinuingYourAgreeingToOur": "By continuing, you're agreeing to our",
"youDontHaveAnyContactsYet": "You dont have any contacts yet."
}
12 changes: 8 additions & 4 deletions lib/pages/new_private_chat/widget/no_contacts_found.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class NoContactsFound extends StatelessWidget {
const SizedBox(
height: 8.0,
),
Text.rich(
keyword != null
? Text.rich(
TextSpan(
style: Theme.of(context).textTheme.bodyMedium,
children: [
Expand All @@ -42,13 +43,16 @@ class NoContactsFound extends StatelessWidget {
),
],
),
),
)
: const SizedBox.shrink(),
const SizedBox(
height: 8.0,
),
const Align(
Align(
alignment: Alignment.center,
child: EmptySearchWidget(),
child: keyword != null
? const EmptySearchWidget()
: Text(L10n.of(context)!.youDontHaveAnyContactsYet),
),
],
),
Expand Down

0 comments on commit b9555b9

Please sign in to comment.