You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new ListView( children: <Widget>[ new Container( key: Key('banner'), child: new Swiper( itemBuilder: (BuildContext context, int index) { return images[index]; }, pagination: new SwiperPagination(), itemCount: 3, autoplay: true, autoplayDelay: 5000, layout: SwiperLayout.DEFAULT, scale: 1, ), height: 170.0 + MediaQuery.of(context).padding.top, ), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), ], ), ScrollController sc = new ScrollController(); @override void initState() { //监听滚动事件,打印滚动位置 sc.addListener(() { _setOpacity(sc.offset); }); super.initState(); }
错误信息:
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
flutter: The following NoSuchMethodError was thrown during a scheduler callback:
flutter: The method 'findRenderObject' was called on null.
flutter: Receiver: null
flutter: Tried calling: findRenderObject()
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
flutter: #1 _TransformerPageViewState._onGetSize (package:transformer_page_view/transformer_page_view.dart:455:41)
flutter: #2 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
flutter: #3 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:938:9)
flutter: #4 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
flutter: #5 _invoke (dart:ui/hooks.dart:154:13)
flutter: #6 _drawFrame (dart:ui/hooks.dart:143:3)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
flutter: Another exception was thrown: NoSuchMethodError: The method 'findRenderObject' was called on null.
flutter: Another exception was thrown: NoSuchMethodError: The method 'findRenderObject' was called on null.
flutter_swiper: ^1.1.4
The text was updated successfully, but these errors were encountered:
new ListView( children: <Widget>[ new Container( key: Key('banner'), child: new Swiper( itemBuilder: (BuildContext context, int index) { return images[index]; }, pagination: new SwiperPagination(), itemCount: 3, autoplay: true, autoplayDelay: 5000, layout: SwiperLayout.DEFAULT, scale: 1, ), height: 170.0 + MediaQuery.of(context).padding.top, ), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), new Text('aaaa'), ], ), ScrollController sc = new ScrollController(); @override void initState() { //监听滚动事件,打印滚动位置 sc.addListener(() { _setOpacity(sc.offset); }); super.initState(); }
错误信息:
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
flutter: The following NoSuchMethodError was thrown during a scheduler callback:
flutter: The method 'findRenderObject' was called on null.
flutter: Receiver: null
flutter: Tried calling: findRenderObject()
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
flutter: #1 _TransformerPageViewState._onGetSize (package:transformer_page_view/transformer_page_view.dart:455:41)
flutter: #2 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
flutter: #3 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:938:9)
flutter: #4 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
flutter: #5 _invoke (dart:ui/hooks.dart:154:13)
flutter: #6 _drawFrame (dart:ui/hooks.dart:143:3)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
flutter: Another exception was thrown: NoSuchMethodError: The method 'findRenderObject' was called on null.
flutter: Another exception was thrown: NoSuchMethodError: The method 'findRenderObject' was called on null.
flutter_swiper: ^1.1.4
The text was updated successfully, but these errors were encountered: