alphabet_list_scroll_view icon indicating copy to clipboard operation
alphabet_list_scroll_view copied to clipboard

Unhandled Exception: type 'Future<bool?>' is not a subtype of type 'FutureOr<bool>' in type cast

Open AhmadFadilB opened this issue 3 years ago • 1 comments

I Tried the example app and the scrolling using the alphabets doesn't work.

[-2:ui_dart_state.cc(199)] Unhandled Exception: type 'Future<bool?>' is not a subtype of type 'FutureOr<bool>' in type cast #0 _AlphabetListScrollViewState._select package:alphabet_list_scroll_view/alphabet_list_scroll_view.dart:274 #1 _AlphabetListScrollViewState._currentWidgetIndex package:alphabet_list_scroll_view/alphabet_list_scroll_view.dart:259 #2 _AlphabetListScrollViewState.build.<anonymous closure> package:alphabet_list_scroll_view/alphabet_list_scroll_view.dart:383 #3 _AlphabetListScollViewState.build.<anonymous closure> package:alphabet_list_scroll_view/alphabet_list_scroll_view.dart:490 #4 DragGestureRecognizer._checkUpdate.<anonymous closure> package:flutter/…/gestures/monodrag.dart:436 #5 GestureRecognizer.invokeCallback package:flutter/…/gestures/recognizer.dart:182 #6 DragGestureRecognizer._checkUpdate package:flutter/…/gestures/monodrag.dart:436 #7 DragGestureRecognizer.handleEvent (package:flutter<…>

  • Flutter 2.2.2
  • Iphone 12 pro max simulator
  • alphabet_list_scroll_view: ^2.0.0

AhmadFadilB avatar Jul 12 '21 10:07 AhmadFadilB

file: "alphabet_list_scroll_view.dart" line: 274 update to bool? hasVibrator = await Vibration.hasVibrator(); if (hasVibrator != null && hasVibrator)
I'm not sure it's very well but it's running by my test

weijingtai avatar Sep 18 '21 00:09 weijingtai