-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TF-3267 Implement HTML attachment preview #3327
base: master
Are you sure you want to change the base?
Conversation
This PR has been deployed to https://linagora.github.io/tmail-flutter/3327. |
hi @chibenwa , please take a look on the UI for HTML preview. Hope to get your feedback to improve it. Thanks |
lib/features/email/domain/usecases/get_html_content_from_attachment_interactor.dart
Outdated
Show resolved
Hide resolved
lib/features/email/presentation/controller/single_email_controller.dart
Outdated
Show resolved
Hide resolved
lib/features/email/presentation/controller/single_email_controller.dart
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Click outside html viewer cannot close it
click-ouside-does-not-close.mov
- Click hyper link can not open new tab
click-link-can-not-open-new-tab.mov
lib/features/email/domain/usecases/get_html_content_from_attachment_interactor.dart
Outdated
Show resolved
Hide resolved
Screen.Recording.2024-12-09.at.16.07.29.mov |
|
can-close-when-click-outside.mov
can-open-external-link.mov
can-view-content.mov
can-download.mov |
core/lib/presentation/utils/html_transformer/text/standardize_html_sanitizing_transformers.dart
Show resolved
Hide resolved
lib/features/email/presentation/widgets/html_attachment_previewer.dart
Outdated
Show resolved
Hide resolved
lib/features/email/presentation/widgets/html_attachment_previewer.dart
Outdated
Show resolved
Hide resolved
lib/features/email/presentation/widgets/html_attachment_previewer.dart
Outdated
Show resolved
Hide resolved
Weblate - web-based localization.html.zip Screen.Recording.2024-12-11.at.13.42.16.mov |
Screen.Recording.2024-12-11.at.14.07.07.mov |
Fix size and add loading Preview-loading.mov |
Screen.Recording.2024-12-11.at.16.52.06.mov |
core/test/utils/standardize_html_sanitizing_transformers_test.dart
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please rebase it
a077366
to
1cf3756
Compare
child: ColoredBox( | ||
color: Colors.transparent, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, we don't need it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is needed for GestureDetector to receive tap outside Html view
children: [ | ||
TopBarAttachmentViewer( | ||
title: title, | ||
closeAction: Get.back, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closeAction: Get.back, | |
closeAction: popBack, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Issue
Demo
Screen.Recording.2024-12-09.at.13.17.46.mov