TF-2068 Remove ScrollController avoid error
(cherry picked from commit 23615409a076e79ab9b03c0739e8b978b77afc6b)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user