Description
I am using swiper in a tab widget and I have this error when transitioned to other tab:
Remarks: I have controlled the list length and the null value
NoSuchMethodError: NoSuchMethodError: The method 'findRenderObject' was called on null. Receiver: null Tried calling: findRenderObject() File "custom_layout.dart", line 42, in _CustomLayoutStateBase.afterRender File "swiper.dart", line 880, in _StackViewState.afterRender File "custom_layout.dart", line 37, in _CustomLayoutStateBase._getSize File "binding.dart", line 1108, in SchedulerBinding._invokeFrameCallback File "binding.dart", line 1055, in SchedulerBinding.handleDrawFrame File "binding.dart", line 963, in SchedulerBinding._handleDrawFrame File "zone.dart", line 1126, in _rootRun File "zone.dart", line 1023, in _CustomZone.run File "zone.dart", line 925, in _CustomZone.runGuarded File "hooks.dart", line 261, in _invoke File "hooks.dart", line 219, in _drawFrame