BirjuVachhani / adaptive_theme

Easiest way to add support for light and dark theme in your flutter app.
https://pub.dev/packages/adaptive_theme
Apache License 2.0
464 stars 37 forks source link

got this bug when i upgraded to flutter 3.0 #36

Closed mufarrah closed 2 years ago

mufarrah commented 2 years ago

currently im using flutter web 3.0 . when i upgraded to this flutter version , i got this error on my consol 👍

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/adaptive_theme-2.3.1/lib/src/adaptive_theme.dart:218:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.

Before, when i was using an older version, this error did not appear. can you please guide ? thanks

BirjuVachhani commented 2 years ago

You need to upgrade adaptive_theme package to 3.0.0 too.

adaptive_theme: ^3.0.0
mufarrah commented 2 years ago

Thanks , it worked