Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

📦 migrate to null safety + make work with stable flutter #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bhupesh-V
Copy link

No description provided.

@madhavtripathi05
Copy link

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

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?

Copy link
Author

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();

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,

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants