flutter_math icon indicating copy to clipboard operation
flutter_math copied to clipboard

Failed to run on flutter 2.0.3

Open dangduoc opened this issue 3 years ago • 6 comments

I got this error when trying to run flutter on andoird simulator. /flutter_math-0.2.1/lib/src/widgets/selection/overlay.dart:302:46: Too few positional arguments: 8 required, 7 given. child: selectionControls.buildToolbar ...

dangduoc avatar Mar 26 '21 07:03 dangduoc

The same happens for me with flutter 2.0.2 on the iphone simulator.

expz avatar Mar 28 '21 06:03 expz

I got this error when trying to run flutter on andoird simulator. /flutter_math-0.2.1/lib/src/widgets/selection/overlay.dart:302:46: Too few positional arguments: 8 required, 7 given. child: selectionControls.buildToolbar ...

I am also experiencing the same problem. Please, give it a higher priority to debug it. - Developer.

baabale avatar Mar 28 '21 16:03 baabale

flutter_math has not been maintained. Someone already fixed this on the fork flutter_math_fork, and it's on pub.dev until this project is maintained again. https://pub.dev/packages/flutter_math_fork

KNuggies avatar Mar 28 '21 17:03 KNuggies

flutter_math has not been maintained. Someone already fixed this on the fork flutter_math_fork, and it's on pub.dev until this project is maintained again. https://pub.dev/packages/flutter_math_fork

Thank you, any idea whether this package is gonna be maintained again or not?

dangduoc avatar Mar 29 '21 11:03 dangduoc

flutter_math has not been maintained. Someone already fixed this on the fork flutter_math_fork, and it's on pub.dev until this project is maintained again. https://pub.dev/packages/flutter_math_fork

Awesome, thanks, buddy. It is working fine.

baabale avatar Mar 29 '21 15:03 baabale

Yes,i too feaced the same issue today when building my old flutter web app. The issue is in thie lib/src/widgets/selection/overlay.dart file whete the selection.buildToolbar is expecting 8 arguments instead of 7, The last argument that's missiing is for the offset.So i solved this issue by passing the offset as the last argument there. child: selectionControls.buildToolbar( context, editingRegion, manager.preferredLineHeight, midpoint, [ TextSelectionPoint(endpoint1, TextDirection.ltr), TextSelectionPoint(endpoint2, TextDirection.ltr), ], manager, clipboardStatus, midpoint,//This right here is the missing argument that was not passed before ),

rutvik110 avatar Apr 10 '21 06:04 rutvik110