Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in trunk #4098

Closed
teolemon opened this issue Jun 8, 2023 · 1 comment · Fixed by #4099 or #4100
Closed

Error in trunk #4098

teolemon opened this issue Jun 8, 2023 · 1 comment · Fixed by #4099 or #4100
Assignees
Labels
🐛 bug Something isn't working

Comments

@teolemon
Copy link
Member

teolemon commented Jun 8, 2023

What

  • error • The body might complete normally, causing 'null' to be returned, but the return type, 'DevicePermissionStatus', is a potentially non-nullable type • packages/smooth_app/lib/helpers/permission_helper.dart:116:33 • body_might_complete_normally
    warning • Missing case clause for 'provisional' • packages/smooth_app/lib/helpers/permission_helper.dart:119:5 • missing_enum_constant_in_switch
  • Error (Xcode): lib/helpers/permission_helper.dart:116:33: Error: A non-null value must be returned since the return type 'DevicePermissionStatus' doesn't allow null.
@teolemon teolemon added the 🐛 bug Something isn't working label Jun 8, 2023
@monsieurtanuki
Copy link
Contributor

I don't have this problem locally (mac computer / android smartphone).
Could it be that on github they use a different version of flutter? Or that iOS behaves differently with an extra value for PermissionStatus?
Capture d’écran 2023-06-08 à 11 18 52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
2 participants