znjameswu / flutter_math

Math rendering and editing in pure Flutter.
https://znjameswu.github.io/flutter_math_demo/
Apache License 2.0
123 stars 52 forks source link

Failed to run on flutter 2.0.3 #46

Open dangduoc opened 3 years ago

dangduoc commented 3 years ago

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 ...

expz commented 3 years ago

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

baabale commented 3 years ago

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.

KNuggies commented 3 years ago

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

dangduoc commented 3 years ago

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?

baabale commented 3 years ago

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.

rutvik110 commented 3 years ago

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 ),