-
Notifications
You must be signed in to change notification settings - Fork 0
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 + make work with stable flutter #1
base: master
Are you sure you want to change the base?
Conversation
complie and target sdk version 32 kardo just to be on safe side and supporting android 12.1 |
|
||
dependencies: | ||
flutter: | ||
sdk: flutter | ||
|
||
logger: ">=1.0.0" | ||
sensors: ^0.4.2+4 |
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.
aren’t we using sensors_plus?
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.
We have yet to try that, will update on this
@@ -62,7 +62,7 @@ class ShakeDetector { | |||
/// Stops listening to accelerometer events | |||
void stopListening() { | |||
if (streamSubscription != null) { | |||
streamSubscription.cancel(); | |||
streamSubscription!.cancel(); |
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.
can be replaced with streamSubscription?.cancel()
blurRadius: 3, | ||
), | ||
], | ||
), | ||
child: Material( | ||
color: dark ? Colors.blueGrey[900] : Colors.white, |
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.
let’s make dark
required or pass a default default value while initialisation
No description provided.