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;
|
Identity? _identitySelected;
|
||||||
String? initialEmailContents;
|
String? initialEmailContents;
|
||||||
|
|
||||||
final ScrollController scrollControllerAttachment = ScrollController();
|
|
||||||
|
|
||||||
final StreamController<Either<Failure, Success>> _downloadProgressStateController =
|
final StreamController<Either<Failure, Success>> _downloadProgressStateController =
|
||||||
StreamController<Either<Failure, Success>>.broadcast();
|
StreamController<Either<Failure, Success>>.broadcast();
|
||||||
Stream<Either<Failure, Success>> get downloadProgressState => _downloadProgressStateController.stream;
|
Stream<Either<Failure, Success>> get downloadProgressState => _downloadProgressStateController.stream;
|
||||||
@@ -152,7 +150,6 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
|
|||||||
@override
|
@override
|
||||||
void onClose() {
|
void onClose() {
|
||||||
_downloadProgressStateController.close();
|
_downloadProgressStateController.close();
|
||||||
scrollControllerAttachment.dispose();
|
|
||||||
super.onClose();
|
super.onClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -418,7 +418,6 @@ class EmailView extends GetWidget<SingleEmailController> with AppLoaderMixin {
|
|||||||
key: const Key('list_attachment_minimize_in_email'),
|
key: const Key('list_attachment_minimize_in_email'),
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
controller: controller.scrollControllerAttachment,
|
|
||||||
itemCount: attachments.length,
|
itemCount: attachments.length,
|
||||||
itemBuilder: (context, index) =>
|
itemBuilder: (context, index) =>
|
||||||
AttachmentFileTileBuilder(
|
AttachmentFileTileBuilder(
|
||||||
|
|||||||
Reference in New Issue
Block a user