Closed nubigit closed 2 years ago
catcher-0.6.9/lib/handlers/toasthandler.dart:48:31: Error: Too many positional arguments: 2 allowed, but 3 found. ` Navigator.push( buildContext!, maintainState=false, PageRouteBuilder( opaque: false, pageBuilder: (, __, ___) => FlutterToastPage( _getErrorMessage(error), _getGravity(), Duration(seconds: _getLengthIos()), backgroundColor, textColor, textSize, ), ), `
Try removing the extra positional arguments. Navigator.push( ^ /opt/flutter/packages/flutter/lib/src/widgets/navigator.dart:2136:21: Context: Found this candidate, but the arguments don't match.
catcher-0.6.9/lib/handlers/toasthandler.dart:48:31: Error: Too many positional arguments: 2 allowed, but 3 found. ` Navigator.push(
buildContext!,
maintainState=false, , __, ___) => FlutterToastPage(
_getErrorMessage(error),
_getGravity(),
Duration(seconds: _getLengthIos()),
backgroundColor,
textColor,
textSize,
),
),
`
PageRouteBuilder( opaque: false, pageBuilder: (
Try removing the extra positional arguments. Navigator.push(
^
/opt/flutter/packages/flutter/lib/src/widgets/navigator.dart:2136:21: Context: Found this candidate, but the arguments don't match.