TF-1832 Enable drag horizontal scroll attachment in email view
(cherry picked from commit 1b8a0e9adeb86add0adf56ab8bf8efa60ce3d9ef)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user