flutter_swiper icon indicating copy to clipboard operation
flutter_swiper copied to clipboard

This widget has been unmounted, so the State no longer has a context (and should be considered defunct).

Open YouSour opened this issue 3 years ago • 4 comments

hi , i'm using flutter_swiper: ^1.1.6 , i develop on web , everything work great , but i got this error message every time i click on maximize or minimize , how can i fix it ? thank in advance

The following assertion was thrown during a scheduler callback:
This widget has been unmounted, so the State no longer has a context (and should be considered defunct).

Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.
When the exception was thrown, this was the stack
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49  throw_
packages/flutter/src/widgets/framework.dart 1088:9                            <fn>
packages/flutter/src/widgets/framework.dart 1093:14                           get context
packages/transformer_page_view/transformer_page_view.dart 455:17              [_onGetSize]
packages/flutter/src/scheduler/binding.dart 1144:15                           [_invokeFrameCallback]
...
════════════════════════════════════════════════════════════════════════════════
 

YouSour avatar Jun 10 '21 04:06 YouSour

me too, How to solve?

shuizhuyu1015 avatar Jan 01 '22 12:01 shuizhuyu1015

me too

dingzuhua2017 avatar Jan 05 '22 08:01 dingzuhua2017

https://github.com/polkawallet-io/transformer_page_view.git

transformer_page_view: git: url: https://github.com/polkawallet-io/transformer_page_view.git ref: 19f3b7c46d5e81653cf027baa2cbe8d629dc052d

Overwriting the original Transformer_Page_view package solves the problem

dingzuhua2017 avatar Feb 10 '22 07:02 dingzuhua2017

How resolve this? @best-flutter

felipecastrosales avatar Jan 09 '23 23:01 felipecastrosales