simpleclub / math_keyboard

Math expression editing using an on-screen software keyboard or physical keyboard input in a typeset input field in Flutter.
https://simpleclub.github.io/math_keyboard
BSD 3-Clause "New" or "Revised" License
134 stars 50 forks source link

break change 0.1.8 -> 0.1.9 #50

Open CuongNV12 opened 1 year ago

CuongNV12 commented 1 year ago

Bug description

../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/math_keyboard-0.1.9/lib/src/widgets/math_field.dart:338:25: Error: Method 'insert' cannot be called on 'OverlayState?' because it is potentially null.
 - 'OverlayState' is from 'package:flutter/src/widgets/overlay.dart' ('../../../../development/flutter/packages/flutter/lib/src/widgets/overlay.dart').
Try calling using ?. instead.
    Overlay.of(context).insert(_overlayEntry!);
                        ^^^^^^

Info

i use flutter 3.0.5 math_keyboard: 0.1.8 -> working math_keyboard: 0.1.9 -> error

please revoke 0.1.9 version and change the version number to 0.2.x to avoid break change issue

github-actions[bot] commented 1 year ago

Hi 👋🏽 Thank you for opening your first issue with simpleclub/math_keyboard ❤

You can expect triage from us soon 🙂 In the meantime, you can try to search for similar issues in our issue database.

HassanEm commented 1 year ago

same issue. I don't use math_keyboard but its look like one of my dependencies depond on this package and throw this issue while deploying. in the new flutter sdk Overlay.of(context) is non-nullable so gives you warning. I check my depedencies with this commands flutter pub deps and I found out flutter_quiz use it but my flutter_quill version is very old and the math_keyboard version of it is 0.1.8 but in deploying it says math_keyboard 0.1.9 has some issues any idea?

canbalkaya commented 1 year ago

Same issue.