-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: master
Are you sure you want to change the base?
Upgrade flutter to version 3.22 #49
Conversation
example/pubspec.yaml
Outdated
@@ -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 |
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.
This is pointing to your machine path, try reverting this to the old one.
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.
fixed
example/web/index.html
Outdated
@@ -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}}'; |
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.
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>
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.
fixed
example/lib/waveforms_dashboard.dart
Outdated
int maxDurationInmilliseconds = | ||
await audioPlayer.fixedPlayer!.getDuration(); | ||
await audioPlayer.getDuration() | ||
.then((value) => maxDuration = value!); |
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.
It's not safe to bang! a better approach would be to set a default duration to 0.
maxDuration = value ?? Duration.zero
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.
fixed
example/lib/main.dart
Outdated
int maxDurationInmilliseconds = | ||
await audioPlayer.fixedPlayer!.getDuration(); | ||
await audioPlayer.getDuration().then((value) => | ||
maxDuration = value!); |
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.
It's not safe to bang! A better approach would be to set the default value to 0.
maxDuration = value ?? Duration.zero
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.
fixed
sdk: ">=3.2.0 <4.0.0"
flutter: ">=3.3.0 <4.0.0"