yako-dev / flutter-status-alert

Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow.
https://pub.dev/packages/status_alert
Apache License 2.0
131 stars 9 forks source link

type 'MaterialColor' is not a subtype of type 'bool #6

Closed faridistiqlal closed 3 years ago

faridistiqlal commented 4 years ago

in [April 1, 2020] you Fixed issue "Type 'Color' is not a subtype of type 'bool'" but error when adding backgroundColor, Help me

Thanks

jefflyne commented 4 years ago

in status_alert_base_widget.dart

change: decoration: BoxDecoration( color: widget.backgroundColor ?? Theme.of(context).brightness == Brightness.dark ? darkBackground : lightBackground, to: decoration: BoxDecoration( color: widget.backgroundColor,

you will have to clone the repo and change the package in pubspec.yaml to a local package

example: status_alert: path: ./packages/flutter-status-alert

yadaniyil commented 3 years ago

@jefflyne @faridistiqlal, sorry for delay. Fixed in the version status_alert: ^0.1.3