cmdrootaccess / another-flushbar

A flexible widget for user notification. Customize your text, button, duration, animations and much more. For Android devs, it is made to replace Snackbars and Toasts.
https://pub.dev/packages/another_flushbar
MIT License
145 stars 88 forks source link

Error: The parameter 'borderRadius' can't have a value of 'null' because of its type 'BorderRadius', but the implicit default value is 'null' #122

Open bastaware opened 1 year ago

bastaware commented 1 year ago

Describe the bug Build fails on current stable.

flushbar.dart line 439

            borderRadius: widget.borderRadius,

Error: The parameter 'borderRadius' can't have a value of 'null' because of its type 'BorderRadius', but the implicit default value is 'null'

To Reproduce Steps to reproduce the behavior:

  1. Upgrade Flutter to version 3.13.0
  2. Compile the code

Expected behavior To compile without errors

zkrige commented 1 year ago

I used another_flushbar: ^1.12.30 and it worked fine, but its broken for any version earlier than this

marcusrohden commented 12 months ago

For the ones using another-flushbar as a dependency of another package, add on your Pubspec:

dependency_overrides:
  another_flushbar: ^1.12.30