TF-2068 Remove ScrollController avoid error

(cherry picked from commit 23615409a076e79ab9b03c0739e8b978b77afc6b)
This commit is contained in:
dab246
2023-08-03 11:31:02 +07:00
committed by Dat Vu
parent 0388e4eef7
commit d38bd99c83
2 changed files with 0 additions and 4 deletions
@@ -117,8 +117,6 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
Identity? _identitySelected;
String? initialEmailContents;
final ScrollController scrollControllerAttachment = ScrollController();
final StreamController<Either<Failure, Success>> _downloadProgressStateController =
StreamController<Either<Failure, Success>>.broadcast();
Stream<Either<Failure, Success>> get downloadProgressState => _downloadProgressStateController.stream;
@@ -152,7 +150,6 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
@override
void onClose() {
_downloadProgressStateController.close();
scrollControllerAttachment.dispose();
super.onClose();
}
@@ -418,7 +418,6 @@ class EmailView extends GetWidget<SingleEmailController> with AppLoaderMixin {
key: const Key('list_attachment_minimize_in_email'),
shrinkWrap: true,
scrollDirection: Axis.horizontal,
controller: controller.scrollControllerAttachment,
itemCount: attachments.length,
itemBuilder: (context, index) =>
AttachmentFileTileBuilder(