Skip to content

Commit

Permalink
fix ui text
Browse files Browse the repository at this point in the history
Signed-off-by: phuoc <[email protected]>
  • Loading branch information
phuocbitmark committed Oct 30, 2023
1 parent cb63126 commit 8853db5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assets
25 changes: 15 additions & 10 deletions lib/screen/interactive_postcard/postcard_detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,18 @@ class ClaimedPostcardDetailPageState extends State<ClaimedPostcardDetailPage>
Widget _postcardAction(BuildContext context, PostcardDetailState state) {
final asset = state.assetToken!;
final theme = Theme.of(context);
if (asset.isCompleted && !isViewOnly) {
final place15StampsText = Text(
"place_15_stamps".tr(),
style: theme.textTheme.moMASans400Black12,
);
if (isViewOnly) {
return const SizedBox();
}
if (asset.isCompleted) {
return _postcardPhysical(context, state);
}
if (!state.isLastOwner ||
!state.postcardValueLoaded ||
isViewOnly != false) {
return const SizedBox();
if (!state.isLastOwner || !state.postcardValueLoaded) {
return place15StampsText;
}
if (state.isPostcardUpdatingOnBlockchain || state.isPostcardUpdating) {
return PostcardCustomButton(
Expand Down Expand Up @@ -634,6 +639,7 @@ class ClaimedPostcardDetailPageState extends State<ClaimedPostcardDetailPage>
},
);
}

final sendPostcardExplain = [
const SizedBox(
height: 20,
Expand All @@ -645,6 +651,10 @@ class ClaimedPostcardDetailPageState extends State<ClaimedPostcardDetailPage>
style: theme.textTheme.moMASans400Black12,
),
),
Padding(
padding: const EdgeInsets.only(left: 16, right: 15, top: 10),
child: place15StampsText,
),
];
if (!isSending) {
timer?.cancel();
Expand Down Expand Up @@ -701,11 +711,6 @@ class ClaimedPostcardDetailPageState extends State<ClaimedPostcardDetailPage>
isPlainUI: true, localStorageItems: {'token': jwtToken}));
},
),
const SizedBox(height: 15),
Text(
"unlock_physical_objects_desc".tr(),
style: Theme.of(context).textTheme.moMASans400Black12,
),
],
);
}
Expand Down

0 comments on commit 8853db5

Please sign in to comment.