flutter-incall-manager
flutter-incall-manager copied to clipboard
'String' is not a subtype of type 'bool'
when the app is running and the user the user approaches the proximity sensor the next error is launched
flutter: map['isNear'] String
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: type 'String' is not a subtype of type 'bool'
#0 IncallManager.eventListener (package:flutter_incall_manager/incall.dart:197:14)
#1 _rootRunUnary (dart:async/zone.dart:1132:38)
#2 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#3 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#4 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#5 _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#6 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:707:11)
#7 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:667:7)
#8 _rootRun (dart:async/zone.dart:1120:38)
#9 _CustomZone.run (dart:async/zone.dart:1021:19)
#10 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#11 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#12 _rootRun (dart:async/zone.dart:1124:13)
#13 _CustomZone.run (dart:async/zone.dart:1021:19)
#14 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#15 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#16 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#17 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
flutter: flutter: close video chat
this is my implementation
@override
void initState() {
super.initState();
incall.checkRecordPermission();
incall.requestRecordPermission();
incall.start({'media': 'audio', 'auto': true, 'ringback': ''});
}
@override
void dispose() {
incall.stop({'busytone': ''});
super.dispose();
}