Skip to content

Upgrade flutter to version 3.22#49

Open
sarahzayat2019 wants to merge 2 commits intorutvik110:masterfrom
sarahzayat2019:upgrade-flutter-3.22
Open

Upgrade flutter to version 3.22#49
sarahzayat2019 wants to merge 2 commits intorutvik110:masterfrom
sarahzayat2019:upgrade-flutter-3.22

Conversation

@sarahzayat2019
Copy link
Copy Markdown

  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


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
Copy link
Copy Markdown

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
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed

https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = null;
var serviceWorkerVersion = '{{flutter_service_worker_version}}';
Copy link
Copy Markdown

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
Copy Markdown
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!);
Copy link
Copy Markdown

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
Copy Markdown
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!);
Copy link
Copy Markdown

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
Copy Markdown
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