darioielardi / flutter_speed_dial

Flutter plugin to implement a Material Design Speed Dial
https://pub.dev/packages/flutter_speed_dial
MIT License
410 stars 177 forks source link

error when building for web please update #303

Closed fisforfaheem closed 1 year ago

fisforfaheem commented 1 year ago

Fixing type incompatibility: The error also indicates type incompatibility issues, particularly related to BorderRadius. Check the versions of the packages involved (flushbar, flutter_speed_dial, data_table_2, etc.) and make sure they are compatible with each other. You may need to update some packages or find alternative packages that are compatible.

File-specific issues: If the errors persist, it's possible that there might be specific issues in the files mentioned (get_information_parser.dart, get_router_delegate.dart, flushbar.dart, etc.). Review those files and see if there are any updates, fixes, or alternative packages available for them.

Consult package documentation: Check the documentation of the packages causing the errors (e.g., get, another_flushbar, flutter_speed_dial, data_table_2) for any known issues or updates. Sometimes, package authors provide solutions or workarounds for common errors.

BenPoell commented 1 year ago

Hi @fisforfaheem, seems like your issue comes from your project. flutter_speed_dial has no dependencies on your mentioned packages.

Furthermore I can't understand what you want to say with this issue. So if this issue is not related to flutter_speed_dial, please close it.

Thanks BP

fisforfaheem commented 1 year ago

I was unable to oush a production build, as this package was causing issues, so I had to removed it, given it is not being updated often and causing build issues

fisforfaheem commented 1 year ago

Error: The argument type 'BorderRadius?' can't be assigned to the parameter type 'BorderRadiusGeometry'" error: This error is related to incompatible types in the flutter_speed_dial package. Check if there is an updated version of the package available that resolves this issue. Alternatively, you can try removing or replacing the code that uses the flutter_speed_dial package to see if the error is resolved.

Other warnings and dependency issues: The log also mentions other warnings and overridden dependencies. It's recommended to review these warnings and resolve any conflicts or outdated dependencies. Update the dependencies mentioned in the log to their latest versions if possible.

To summarize, here are the steps you can take to address the errors:

Verify that the Flutter directory is correctly set up and accessible. Run the Flutter commands without superuser privileges. Check for an updated version of the flutter_speed_dial package and update it if available. Alternatively, remove or replace the code that uses the package. Review the other warnings and dependency issues mentioned in the log and resolve them by updating the dependencies to their latest versions. By addressing these issues, you should be able to resolve the compilation error and successfully build your Flutter project for the web.

BenPoell commented 1 year ago

if it's causing issues in your production build you should varify the flutter and the package version before doing a deployment to production. For me it sounds like you are doing flutter upgrades but not maintaining your packages accordingly - otherwise the build errors would already pop up in a pre-production phase and you could fix it (or create a PR with your suggested changes here).

fisforfaheem commented 1 year ago

Thanks After following your suggestions I was able to successfully fix the build issues, I upgraded all packages and did a flutter clean, removed ubspec,lock file and rerun pub get

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 05/20/23, 05:59:23 PM

On Sat, May 20, 2023 at 12:54 PM Benjo @.***> wrote:

if it's causing issues in your production build you should varify the flutter and the package version before doing a deployment to production. For me it sounds like you are doing flutter upgrades but not maintaining your packages accordingly - otherwise the build errors would already pop up in a pre-production phase and you could fix it (or create a PR with your suggested changes here).

— Reply to this email directly, view it on GitHub https://github.com/darioielardi/flutter_speed_dial/issues/303#issuecomment-1555827260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRXJSE64WLU5EQCYP2UU3DXHB2CJANCNFSM6AAAAAAX6AIFUE . You are receiving this because you were mentioned.Message ID: @.***>