Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jun 24, 2024
2 parents 26a0789 + b565b27 commit 5cfec1f
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions lib/ui/settings/account_management.dart
Original file line number Diff line number Diff line change
Expand Up @@ -296,44 +296,46 @@ class _AccountManagementState extends State<AccountManagement>
crossAxisAlignment: CrossAxisAlignment.stretch,
isLast: true,
children: [
ListTile(
title: Text(localization.referralUrl),
subtitle: Text(
user.referralUrl,
maxLines: 1,
overflow: TextOverflow.ellipsis,
if (isHosted(context)) ...[
ListTile(
title: Text(localization.referralUrl),
subtitle: Text(
user.referralUrl,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
trailing: Icon(Icons.content_copy),
onTap: () {
Clipboard.setData(ClipboardData(text: user.referralUrl));
showToast(localization.copiedToClipboard
.replaceFirst(':value ', user.referralUrl));
},
),
trailing: Icon(Icons.content_copy),
onTap: () {
Clipboard.setData(ClipboardData(text: user.referralUrl));
showToast(localization.copiedToClipboard
.replaceFirst(':value ', user.referralUrl));
},
),
SizedBox(height: 16),
for (var plan in user.referralMeta.keys)
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 40, vertical: 10),
child: Row(
children: [
Spacer(),
SizedBox(
child: Text(
localization.lookup(plan),
SizedBox(height: 16),
for (var plan in user.referralMeta.keys)
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 40, vertical: 10),
child: Row(
children: [
Spacer(),
SizedBox(
child: Text(
localization.lookup(plan),
style: Theme.of(context).textTheme.headlineSmall,
),
width: 180,
),
Text(
'${user.referralMeta[plan]}',
style: Theme.of(context).textTheme.headlineSmall,
),
width: 120,
),
Text(
'${user.referralMeta[plan]}',
style: Theme.of(context).textTheme.headlineSmall,
),
Spacer(),
],
Spacer(),
],
),
),
),
SizedBox(height: 10),
SizedBox(height: 10),
],
AppButton(
onPressed: () => launchUrl(Uri.parse(kReferralURL)),
label: localization.learnMore.toUpperCase(),
Expand Down

0 comments on commit 5cfec1f

Please sign in to comment.