TF-1832 Enable drag horizontal scroll attachment in email view

(cherry picked from commit 1b8a0e9adeb86add0adf56ab8bf8efa60ce3d9ef)
This commit is contained in:
dab246
2023-05-11 16:17:48 +07:00
committed by Dat Vu
parent 1625a8ee2f
commit 8bbc770881
2 changed files with 13 additions and 4 deletions
@@ -103,6 +103,8 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
Identity? _identitySelected;
List<EmailContent>? initialEmailContents;
final ScrollController scrollControllerAttachment = ScrollController();
final StreamController<Either<Failure, Success>> _downloadProgressStateController =
StreamController<Either<Failure, Success>>.broadcast();
Stream<Either<Failure, Success>> get downloadProgressState => _downloadProgressStateController.stream;
@@ -135,6 +137,7 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
@override
void onClose() {
_downloadProgressStateController.close();
scrollControllerAttachment.dispose();
super.onClose();
}