Skip to content
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

Upgrade flutter to version 3.22 #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sarahzayat2019
Copy link

  1. upgrade flutter version
    sdk: ">=3.2.0 <4.0.0"
    flutter: ">=3.3.0 <4.0.0"
  2. upudate other package so they would work with new flutter version
  3. fix linter issue for keys
  4. update method to match new audioPlayer version
  5. update the example repo so it matches the update versions methods

@@ -31,11 +32,11 @@ dependencies:
sdk: flutter

flutter_audio_waveforms:
path: /Users/rutviktak/flutter_projects/flutter_plugins/flutter_audio_waveforms/ # 1.0.0+1
path: /home/wolverine/projects/flutter-projects/flutter packages/flutter_audio_waveforms

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pointing to your machine path, try reverting this to the old one.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -34,7 +34,7 @@
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = null;
var serviceWorkerVersion = '{{flutter_service_worker_version}}';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer a valid script tag as of Flutter 3.2X

...
  <link rel="manifest" href="manifest.json" />
  </head>
  <body>
    <script src="flutter_bootstrap.js" async></script>
  </body>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

int maxDurationInmilliseconds =
await audioPlayer.fixedPlayer!.getDuration();
await audioPlayer.getDuration()
.then((value) => maxDuration = value!);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not safe to bang! a better approach would be to set a default duration to 0.

maxDuration = value ?? Duration.zero

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

int maxDurationInmilliseconds =
await audioPlayer.fixedPlayer!.getDuration();
await audioPlayer.getDuration().then((value) =>
maxDuration = value!);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not safe to bang! A better approach would be to set the default value to 0.

maxDuration = value ?? Duration.zero

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

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

Successfully merging this pull request may close these issues.

3 participants