Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangbtmrk committed Aug 29, 2024
1 parent 0bbd97d commit 04645d6
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 28 deletions.
2 changes: 1 addition & 1 deletion assets
4 changes: 2 additions & 2 deletions lib/screen/irl_screen/webview_irl_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class _IRLWebScreenState extends State<IRLWebScreen> {
'_signMessage',
JSResult.error(
'''
Wallet not found. Chain ${argument.chain},
Wallet not found. Chain ${argument.chain},
address: ${argument.sourceAddress}
''',
),
Expand Down Expand Up @@ -394,7 +394,7 @@ class _IRLWebScreenState extends State<IRLWebScreen> {
'_sendTransaction',
JSResult.error(
'''
Wallet not found. Chain ${argument.chain},
Wallet not found. Chain ${argument.chain},
address: ${argument.sourceAddress}
''',
),
Expand Down
8 changes: 6 additions & 2 deletions lib/screen/new_onboarding_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,18 @@ class _NewOnboardingPageState extends State<NewOnboardingPage> {
),
Text(
title,
style: theme.textTheme.ppMori700White24,
style: theme.textTheme.ppMori700Black36.copyWith(
color: AppColor.white,
),
),
Container(
height: 30,
),
Text(
desc,
style: theme.textTheme.ppMori400White14,
style: theme.textTheme.ppMori700White18.copyWith(
fontWeight: FontWeight.w400,
),
),
],
),
Expand Down
3 changes: 2 additions & 1 deletion lib/util/ui_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class UIHelper {
EdgeInsets? padding,
EdgeInsets? paddingTitle,
bool withCloseIcon = false,
double spacing = 40,
}) async {
log.info('[UIHelper] showDialog: $title');
currentDialogTitle = title;
Expand Down Expand Up @@ -174,7 +175,7 @@ class UIHelper {
],
),
),
const SizedBox(height: 40),
SizedBox(height: spacing),
content,
],
),
Expand Down
32 changes: 12 additions & 20 deletions lib/view/cast_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,30 +173,22 @@ class _FFCastButtonState extends State<FFCastButton> {
final subscriptionDetail =
upgradeState.activeSubscriptionDetails.firstOrNull;
final price = subscriptionDetail?.price ?? r'$200/year';
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'you_need_to_subscribe'.tr(),
style: Theme.of(context).textTheme.ppMori400White14,
),
const SizedBox(height: 20),
MembershipCard(
type: MembershipCardType.premium,
price: price,
isProcessing: upgradeState.isProcessing,
isEnable: subscriptionDetail != null,
onTap: (_) {
_onPressSubscribe(
subscriptionDetails: subscriptionDetail!);
},
buttonText: 'upgrade'.tr(),
),
],
return MembershipCard(
type: MembershipCardType.premium,
price: price,
isProcessing: upgradeState.isProcessing,
isEnable: subscriptionDetail != null,
onTap: (_) {
_onPressSubscribe(subscriptionDetails: subscriptionDetail!);
},
buttonText: 'upgrade'.tr(),
);
}),
),
isDismissible: true,
withCloseIcon: true,
spacing: 20,
padding: const EdgeInsets.fromLTRB(14, 20, 14, 40),
);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/view/display_instruction_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class HowToDisplayOnBrowser extends StatelessWidget {
),
),
const TextSpan(
text: " on your TV's web browser.",
text: " on TV's web browser.",
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/view/stream_device_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class _StreamDeviceViewState extends State<StreamDeviceView> {
const SizedBox(height: 30),
],
] else ...[
const SizedBox(height: 40),
const SizedBox(height: 20),
_instructionDetailWidget(context),
],
const SizedBox(height: 10),
Expand Down

0 comments on commit 04645d6

Please sign in to comment.