-
Notifications
You must be signed in to change notification settings - Fork 74
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
migrate to null-safety #17
base: master
Are you sure you want to change the base?
Conversation
@NarHakobyan Oops, I missed your PR and created one for this as well. |
lib/flutter_statusbar_manager.dart
Outdated
@@ -9,7 +9,7 @@ class _StatusBarStyle { | |||
static const String LIGHT_CONTENT = "light-content"; | |||
static const String DARK_CONTENT = "dark-content"; | |||
|
|||
static String getStyle(StatusBarStyle style) { | |||
static String getStyle(StatusBarStyle? style) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should not accept null values here
lib/flutter_statusbar_manager.dart
Outdated
@@ -30,7 +30,7 @@ class _StatusBarAnimation { | |||
static const String FADE = "fade"; | |||
static const String SLIDE = "slide"; | |||
|
|||
static String getAnimation(StatusBarAnimation animation) { | |||
static String getAnimation(StatusBarAnimation? animation) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here
lib/flutter_statusbar_manager.dart
Outdated
@@ -51,7 +51,7 @@ class _NavigationBarStyle { | |||
static const String DARK = "light"; | |||
static const String LIGHT = "dark"; | |||
|
|||
static String getStyle(NavigationBarStyle style) { | |||
static String getStyle(NavigationBarStyle? style) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here
Hi @amitkot, yeah, it's not necessary to have nullable arguments. I have fixed it. |
@amitkot are you still here? :D |
@NarHakobyan thanks very much for your PR, I am using it for now unless something else is moving here... Do you have a solution for Edit: I found a solution using |
Fix MissingPluginException for flutter web
@NarHakobyan hi, missed your ping (a month ago). |
Hi guys, I migrated package to null safety, to be honest I think this library is no more maintainable so you can use null safety version directly from git.