Compare commits

..

1 Commits

Author SHA1 Message Date
drone
ceadd0cad8 Add renovate.json 2022-03-26 11:27:01 +00:00
15 changed files with 456 additions and 690 deletions

1
.gitignore vendored
View File

@ -32,6 +32,7 @@
/build/ /build/
# Web related # Web related
lib/generated_plugin_registrant.dart
# Symbolication related # Symbolication related
app.*.symbols app.*.symbols

View File

@ -2,12 +2,5 @@
New generation of music web player for the [music server](https://gitlab.com/pierre42100/musicsserver) written based on Flutter. New generation of music web player for the [music server](https://gitlab.com/pierre42100/musicsserver) written based on Flutter.
### Debugging
Add the following run arguments:
```bash
--dart-define API_URL=<MUSIC_SERVER_ENDPINT> --dart-define API_TOKEN=<API_TOKEN>
```
## Screenshot ## Screenshot
![screenshot of app](img/screenshot-1.jpg) ![screenshot of app](img/screenshot-1.jpg)

View File

@ -30,7 +30,7 @@ typedef MusicsList = List<MusicEntry>;
class API { class API {
/// Get the list of music /// Get the list of music
static Future<MusicsList> getList() async { static Future<MusicsList> getList() async {
final response = await Dio().get("${config.apiURL}/list", final response = await Dio().get(config.apiURL + "/list",
options: Options(headers: {"Token": config.apiToken})); options: Options(headers: {"Token": config.apiToken}));
if (response.statusCode != 200) { if (response.statusCode != 200) {

View File

@ -1,19 +1,16 @@
import 'dart:async';
import 'package:cached_network_image/cached_network_image.dart'; import 'package:cached_network_image/cached_network_image.dart';
import 'package:cached_network_image_platform_interface/cached_network_image_platform_interface.dart'; import 'package:cached_network_image_platform_interface/cached_network_image_platform_interface.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:music_web_player/api.dart'; import 'package:music_web_player/api.dart';
import 'package:music_web_player/config.dart'; import 'package:music_web_player/config.dart';
class CoverImage extends StatefulWidget { class CoverImage extends StatelessWidget {
final MusicEntry music; final MusicEntry music;
final double? width; final double? width;
final double? height; final double? height;
final BoxFit? fit; final BoxFit? fit;
final Icon? icon; final Icon? icon;
final Color? backgroundColor; final Color? backgroundColor;
final Duration? delayLoading;
const CoverImage({ const CoverImage({
Key? key, Key? key,
@ -23,61 +20,31 @@ class CoverImage extends StatefulWidget {
this.icon, this.icon,
this.fit, this.fit,
this.backgroundColor, this.backgroundColor,
this.delayLoading,
}) : super(key: key); }) : super(key: key);
@override
State<StatefulWidget> createState() => _CoverImageState();
}
class _CoverImageState extends State<CoverImage> {
var _canShowImage = true;
Timer? _timer;
@override
void initState() {
super.initState();
if (widget.delayLoading != null) {
_canShowImage = false;
Timer(widget.delayLoading!, () {
if (mounted) {
setState(() => _canShowImage = true);
}
});
}
}
@override
void dispose() {
super.dispose();
_timer?.cancel();
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (!_canShowImage) return _loadingWidget(null);
return CachedNetworkImage( return CachedNetworkImage(
width: widget.width, width: width,
height: widget.height, height: height,
imageRenderMethodForWeb: ImageRenderMethodForWeb.HttpGet, imageRenderMethodForWeb: ImageRenderMethodForWeb.HttpGet,
imageUrl: widget.music.coverURL, imageUrl: music.coverURL,
cacheKey: widget.music.coverCacheKey, cacheKey: music.coverCacheKey,
httpHeaders: {"Token": config.apiToken}, httpHeaders: {"Token": config.apiToken},
useOldImageOnUrlChange: false, useOldImageOnUrlChange: false,
progressIndicatorBuilder: (c, s, p) => _loadingWidget(p.progress), progressIndicatorBuilder: (c, s, p) => _loadingWidget(p.progress),
fit: widget.fit, fit: fit,
errorWidget: (c, s, e) => _loadingWidget(null), errorWidget: (c, s, e) => _loadingWidget(null),
); );
} }
Widget _loadingWidget(double? progress) => Container( Widget _loadingWidget(double? progress) => Container(
color: widget.backgroundColor ?? Colors.black, color: backgroundColor ?? Colors.black,
width: widget.width, width: width,
height: widget.height, height: height,
child: Center( child: Center(
child: progress == null child: progress == null
? widget.icon ? icon
: CircularProgressIndicator(value: progress), : CircularProgressIndicator(value: progress),
), ),
); );

View File

@ -8,7 +8,6 @@ import 'package:flutter/material.dart';
import 'package:music_web_player/api.dart'; import 'package:music_web_player/api.dart';
import 'package:music_web_player/ui/cover_image.dart'; import 'package:music_web_player/ui/cover_image.dart';
import 'package:music_web_player/ui/player_web_interface.dart'; import 'package:music_web_player/ui/player_web_interface.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:video_player/video_player.dart'; import 'package:video_player/video_player.dart';
extension DurationExt on Duration { extension DurationExt on Duration {
@ -17,7 +16,7 @@ extension DurationExt on Duration {
} }
} }
const smartphoneSize = 700; const double playlistWidth = 300;
class MusicPlayer extends StatefulWidget { class MusicPlayer extends StatefulWidget {
final MusicsList musicsList; final MusicsList musicsList;
@ -43,9 +42,7 @@ class _MusicPlayerState extends State<MusicPlayer> {
final List<MusicEntry> _stack = []; final List<MusicEntry> _stack = [];
int currMusicPos = 0; int currMusicPos = 0;
var _showPlaylist = true; var _showPlaylist = false;
var _playFilteredMusics = false;
final _filterController = fluent.TextEditingController(); final _filterController = fluent.TextEditingController();
MusicsList? _filteredList; MusicsList? _filteredList;
@ -55,11 +52,8 @@ class _MusicPlayerState extends State<MusicPlayer> {
// Automatically choose next music if required // Automatically choose next music if required
if (currMusicPos >= _stack.length) { if (currMusicPos >= _stack.length) {
var list = (_playFilteredMusics && (_filteredList?.length ?? 0) > 1) var nextId = rng.nextInt(widget.musicsList.length);
? _filteredList ?? widget.musicsList _stack.add(widget.musicsList[nextId]);
: widget.musicsList;
var nextId = rng.nextInt(list.length);
_stack.add(list[nextId]);
} }
return _stack[currMusicPos]; return _stack[currMusicPos];
@ -156,111 +150,65 @@ class _MusicPlayerState extends State<MusicPlayer> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (!_showPlaylist) { return LayoutBuilder(
return _playerWithoutPlaylistPane(); builder: (context, constraints) {
} else { final mainAreaWidth =
return _playerWithPlaylistPane(); constraints.maxWidth - (_showPlaylist ? playlistWidth : 0);
}
}
Widget _playerWithoutPlaylistPane() => _buildWithBackground(LayoutBuilder( return fluent.Row(
builder: (context, constraints) { children: [
return fluent.Row( SizedBox(
children: [ width: mainAreaWidth,
SizedBox( child: Stack(
width: constraints.maxWidth, children: [
child: Stack( // Background image
children: [ CoverImage(
fluent.SizedBox( music: currMusic,
width: constraints.maxWidth, width: mainAreaWidth,
child: _buildPlayerWidget(), height: constraints.maxHeight,
), fit: BoxFit.cover,
Positioned( ),
top: 10,
right: 10,
child: fluent.Row(
children: [
_buildToggleListButton(),
],
)),
Positioned(
bottom: 10,
right: 10,
child: fluent.Row(
children: [
_buildDownloadTrackButton(),
const SizedBox(width: 10),
_buildAboutButton(),
],
)),
],
),
),
],
);
},
));
Widget _playerWithPlaylistPane() => LayoutBuilder( // Blur background image
builder: (context, constraints) { ClipRRect(
const double playerSize = 100; // Clip it cleanly.
return Column( child: BackdropFilter(
children: [ filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
fluent.SizedBox( child: Container(
height: constraints.maxHeight - playerSize, color: Colors.black.withOpacity(0.8),
child: _buildPlaylistPane(), alignment: Alignment.center,
), child: SizedBox(
fluent.SizedBox( width: mainAreaWidth,
height: playerSize, height: constraints.maxHeight,
width: constraints.maxWidth,
child: _buildWithBackground(
_buildSmallPlayerWidget(constraints.maxWidth)),
),
],
);
},
);
Widget _buildWithBackground(Widget child) => LayoutBuilder(
builder: (context, constraints) {
return fluent.Row(
children: [
SizedBox(
width: constraints.maxWidth,
child: Stack(
children: [
// Background image
CoverImage(
music: currMusic,
width: constraints.maxWidth,
height: constraints.maxHeight,
fit: BoxFit.cover,
),
// Blur background image
ClipRRect(
// Clip it cleanly.
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: Container(
color: Colors.black.withOpacity(0.8),
alignment: Alignment.center,
child: SizedBox(
width: constraints.maxWidth,
height: constraints.maxHeight,
),
), ),
), ),
), ),
),
child fluent.SizedBox(
], width: mainAreaWidth,
), child: _buildPlayerWidget(),
),
Positioned(
top: 10, right: 10, child: _buildToggleListButton()),
],
), ),
], ),
);
}, // Playlist
); _showPlaylist
? SizedBox(
width: playlistWidth,
height: constraints.maxHeight,
child: _buildPlaylistPane(),
)
: Container(),
],
);
},
);
}
Widget _buildPlayerWidget() => fluent.Center( Widget _buildPlayerWidget() => fluent.Center(
child: SizedBox( child: SizedBox(
@ -269,7 +217,11 @@ class _MusicPlayerState extends State<MusicPlayer> {
mainAxisAlignment: fluent.MainAxisAlignment.center, mainAxisAlignment: fluent.MainAxisAlignment.center,
crossAxisAlignment: fluent.CrossAxisAlignment.center, crossAxisAlignment: fluent.CrossAxisAlignment.center,
children: [ children: [
RoundedImage( Material(
borderRadius: const BorderRadius.all(
Radius.circular(18.0),
),
clipBehavior: Clip.hardEdge,
child: CoverImage( child: CoverImage(
width: 250, width: 250,
height: 250, height: 250,
@ -293,144 +245,45 @@ class _MusicPlayerState extends State<MusicPlayer> {
children: [ children: [
DurationText(_position), DurationText(_position),
const SizedBox(width: 15), const SizedBox(width: 15),
_buildProgressBar(), Flexible(
child: fluent.Slider(
max: _duration?.inSeconds as double? ?? 0,
value: _position?.inSeconds as double? ?? 0,
onChanged: (d) =>
_updatePosition(Duration(seconds: d.toInt())),
label: _position?.formatted,
),
),
const SizedBox(width: 15), const SizedBox(width: 15),
DurationText(_duration), DurationText(_duration),
], ],
), ),
const fluent.SizedBox(height: 40), const fluent.SizedBox(height: 40),
_buildPlayersIcons(), fluent.Row(
children: [
IconButton(
icon: const PlayerIcon(fluent.FluentIcons.previous),
onPressed: currMusicPos == 0 ? null : _playPrevious,
),
const Spacer(),
IconButton(
icon: PlayerIcon(_isPlaying
? fluent.FluentIcons.pause
: fluent.FluentIcons.play),
onPressed: _isPlaying ? _pause : _play,
),
const Spacer(),
IconButton(
icon: const PlayerIcon(fluent.FluentIcons.next),
onPressed: _playNext,
),
],
)
], ],
), ),
), ),
); );
Widget _buildSmallPlayerWidget(double width) {
var partSize = width > smartphoneSize ? width / 3 : width / 2.5;
return Padding(
padding: const EdgeInsets.all(16.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
fluent.ClipRect(
child: SizedBox(
width: partSize,
child: Row(
children: [
RoundedImage(
child: CoverImage(
music: currMusic,
width: 80,
height: 80,
fit: BoxFit.cover,
backgroundColor: Colors.black12,
icon: const Icon(FluentIcons.music_note_2_24_regular,
size: 30),
),
),
// Artist area
const SizedBox(width: 10),
fluent.ClipRect(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
currMusic.title,
style: const TextStyle(fontSize: 22),
overflow: TextOverflow.ellipsis,
),
Text(
currMusic.artist,
textAlign: TextAlign.start,
overflow: TextOverflow.ellipsis,
),
],
),
)
],
),
),
),
SizedBox(
width: partSize,
child: Column(
children: [
fluent.Row(
children: [
DurationText(_position),
const SizedBox(width: 20),
_buildProgressBar(),
const SizedBox(width: 20),
DurationText(_duration),
],
),
const SizedBox(height: 5),
_buildPlayersIcons(25),
],
)),
const Spacer(),
_buildToggleListButton()
],
),
);
}
Widget _buildPlayersIcons([double? size]) => fluent.Row(
children: [
IconButton(
icon: PlayerIcon(
fluent.FluentIcons.previous,
size: size,
),
onPressed: currMusicPos == 0 ? null : _playPrevious,
),
const Spacer(),
IconButton(
icon: PlayerIcon(
_isPlaying ? fluent.FluentIcons.pause : fluent.FluentIcons.play,
size: size,
),
onPressed: _isPlaying ? _pause : _play,
),
const Spacer(),
IconButton(
icon: PlayerIcon(
fluent.FluentIcons.next,
size: size,
),
onPressed: _playNext,
),
],
);
Widget _buildProgressBar() => Flexible(
child: fluent.Slider(
max: _duration?.inSeconds as double? ?? 0,
value: _position?.inSeconds as double? ?? 0,
onChanged: (d) => _updatePosition(Duration(seconds: d.toInt())),
label: _position?.formatted,
),
);
Widget _buildDownloadTrackButton() => fluent.Button(
onPressed: () =>
launchUrlString(currMusic.musicURL, webOnlyWindowName: "_blank"),
child: const fluent.Icon(fluent.FluentIcons.download),
);
Widget _buildAboutButton() => fluent.Button(
onPressed: () => showLicensePage(
context: context,
applicationName: "Music Player",
applicationIcon:
const fluent.Icon(FluentIcons.music_note_2_24_regular),
),
child: const fluent.Icon(fluent.FluentIcons.info),
);
Widget _buildToggleListButton() => fluent.ToggleButton( Widget _buildToggleListButton() => fluent.ToggleButton(
checked: _showPlaylist, checked: _showPlaylist,
onChanged: (s) => setState(() => _showPlaylist = s), onChanged: (s) => setState(() => _showPlaylist = s),
@ -441,8 +294,6 @@ class _MusicPlayerState extends State<MusicPlayer> {
return Column( return Column(
children: [ children: [
fluent.TextBox( fluent.TextBox(
decoration: const BoxDecoration(border: Border()),
minHeight: 20,
controller: _filterController, controller: _filterController,
placeholder: "Filter list...", placeholder: "Filter list...",
onChanged: (s) => _refreshFilteredList(), onChanged: (s) => _refreshFilteredList(),
@ -458,17 +309,6 @@ class _MusicPlayerState extends State<MusicPlayer> {
itemBuilder: (c, i) { itemBuilder: (c, i) {
final music = (_filteredList ?? widget.musicsList)[i]; final music = (_filteredList ?? widget.musicsList)[i];
return ListTile( return ListTile(
leading: RoundedImage(
child: CoverImage(
delayLoading: const Duration(seconds: 2),
music: music,
width: 50,
height: 50,
fit: BoxFit.cover,
backgroundColor: Colors.transparent,
icon: const Icon(Icons.music_note),
),
),
title: Text(music.title), title: Text(music.title),
subtitle: Text(music.artist), subtitle: Text(music.artist),
selected: currMusic == music, selected: currMusic == music,
@ -478,15 +318,6 @@ class _MusicPlayerState extends State<MusicPlayer> {
itemCount: (_filteredList ?? widget.musicsList).length, itemCount: (_filteredList ?? widget.musicsList).length,
), ),
), ),
(_filteredList?.length ?? 0) < 2
? Container()
: ListTile(
leading: fluent.ToggleSwitch(
checked: _playFilteredMusics,
onChanged: (v) => setState(() => _playFilteredMusics = v),
),
title: const Text("Play only filtered musics"),
)
], ],
); );
} }
@ -494,12 +325,11 @@ class _MusicPlayerState extends State<MusicPlayer> {
class PlayerIcon extends StatelessWidget { class PlayerIcon extends StatelessWidget {
final IconData icon; final IconData icon;
final double? size;
const PlayerIcon(this.icon, {Key? key, this.size}) : super(key: key); const PlayerIcon(this.icon, {Key? key}) : super(key: key);
@override @override
Widget build(BuildContext context) => Icon(icon, size: size ?? 35); Widget build(BuildContext context) => Icon(icon, size: 35);
} }
class DurationText extends StatelessWidget { class DurationText extends StatelessWidget {
@ -515,20 +345,3 @@ class DurationText extends StatelessWidget {
); );
} }
} }
class RoundedImage extends StatelessWidget {
final Widget child;
const RoundedImage({Key? key, required this.child}) : super(key: key);
@override
Widget build(BuildContext context) {
return Material(
borderRadius: const BorderRadius.all(
Radius.circular(18.0),
),
clipBehavior: Clip.hardEdge,
child: child,
);
}
}

View File

@ -20,11 +20,11 @@ class PlayerApp extends StatelessWidget {
brightness: Brightness.dark, brightness: Brightness.dark,
), ),
home: fluent.FluentTheme( home: fluent.FluentTheme(
child: const AppHome(),
data: fluent.ThemeData( data: fluent.ThemeData(
iconTheme: const IconThemeData(color: Colors.white), iconTheme: const IconThemeData(color: Colors.white),
brightness: fluent.Brightness.dark, brightness: fluent.Brightness.dark,
), ),
child: const AppHome(),
), ),
); );
} }

View File

@ -6,10 +6,6 @@
#include "generated_plugin_registrant.h" #include "generated_plugin_registrant.h"
#include <url_launcher_linux/url_launcher_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) { void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
} }

View File

@ -3,10 +3,6 @@
# #
list(APPEND FLUTTER_PLUGIN_LIST list(APPEND FLUTTER_PLUGIN_LIST
url_launcher_linux
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
) )
set(PLUGIN_BUNDLED_LIBRARIES) set(PLUGIN_BUNDLED_LIBRARIES)
@ -17,8 +13,3 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>) list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin) endforeach(plugin)
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)

484
player-server/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -10,4 +10,4 @@ actix-files = "0.6.0"
actix-web = "4" actix-web = "4"
env_logger = "0.9.0" env_logger = "0.9.0"
log = "0.4" log = "0.4"
clap = { version = "4.0.7", features = ["derive", "env"] } clap = { version = "3.1.6", features = ["derive", "env"] }

View File

@ -1,7 +1,7 @@
use std::path::Path; use std::path::Path;
use actix_files::Files; use actix_files::Files;
use actix_web::{middleware::Logger, web, App, HttpResponse, HttpServer}; use actix_web::{App, HttpResponse, HttpServer, middleware::Logger, web};
use clap::Parser; use clap::Parser;
/// Music web player server /// Music web player server
@ -32,10 +32,7 @@ async fn main_js_file(data: web::Data<Args>) -> HttpResponse {
let script = file let script = file
.replace("<<<API_URL>>>", &data.api_url) .replace("<<<API_URL>>>", &data.api_url)
.replace("<<<API_TOKEN>>>", &data.api_token) .replace("<<<API_TOKEN>>>", &data.api_token)
.replace( .replace("https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf", "/fonts/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf");
"https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf",
"/fonts/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf",
);
HttpResponse::Ok() HttpResponse::Ok()
.content_type("application/javascript") .content_type("application/javascript")
@ -57,7 +54,7 @@ async fn main() -> std::io::Result<()> {
.wrap(Logger::default()) .wrap(Logger::default())
.app_data(web::Data::new(args_cp.clone())) .app_data(web::Data::new(args_cp.clone()))
}) })
.bind(args.listen_address)? .bind(args.listen_address)?
.run() .run()
.await .await
} }

View File

@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.9.0" version: "2.8.2"
audio_service_platform_interface: audio_service_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -35,28 +35,35 @@ packages:
name: cached_network_image name: cached_network_image
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.2.2" version: "3.2.0"
cached_network_image_platform_interface: cached_network_image_platform_interface:
dependency: "direct main" dependency: "direct main"
description: description:
name: cached_network_image_platform_interface name: cached_network_image_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "1.0.0"
cached_network_image_web: cached_network_image_web:
dependency: transitive dependency: transitive
description: description:
name: cached_network_image_web name: cached_network_image_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.0.1"
characters: characters:
dependency: transitive dependency: transitive
description: description:
name: characters name: characters
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.1" version: "1.2.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
chewie_audio: chewie_audio:
dependency: "direct main" dependency: "direct main"
description: description:
@ -70,77 +77,77 @@ packages:
name: clock name: clock
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.1.0"
collection: collection:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.16.0" version: "1.15.0"
crypto: crypto:
dependency: transitive dependency: transitive
description: description:
name: crypto name: crypto
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.2" version: "3.0.1"
csslib: csslib:
dependency: transitive dependency: transitive
description: description:
name: csslib name: csslib
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.17.2" version: "0.17.1"
cupertino_icons: cupertino_icons:
dependency: "direct main" dependency: "direct main"
description: description:
name: cupertino_icons name: cupertino_icons
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.5" version: "1.0.4"
dio: dio:
dependency: "direct main" dependency: "direct main"
description: description:
name: dio name: dio
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.6" version: "4.0.4"
fake_async: fake_async:
dependency: transitive dependency: transitive
description: description:
name: fake_async name: fake_async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.1" version: "1.2.0"
ffi: ffi:
dependency: transitive dependency: transitive
description: description:
name: ffi name: ffi
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.1" version: "1.1.2"
file: file:
dependency: transitive dependency: transitive
description: description:
name: file name: file
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.1.4" version: "6.1.2"
fluent_ui: fluent_ui:
dependency: "direct main" dependency: "direct main"
description: description:
name: fluent_ui name: fluent_ui
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.1" version: "3.9.1"
fluentui_system_icons: fluentui_system_icons:
dependency: "direct main" dependency: "direct main"
description: description:
name: fluentui_system_icons name: fluentui_system_icons
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.182" version: "1.1.162"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
@ -152,7 +159,7 @@ packages:
name: flutter_blurhash name: flutter_blurhash
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.7.0" version: "0.6.4"
flutter_cache_manager: flutter_cache_manager:
dependency: transitive dependency: transitive
description: description:
@ -166,12 +173,7 @@ packages:
name: flutter_lints name: flutter_lints
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.1" version: "1.0.4"
flutter_localizations:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -195,14 +197,14 @@ packages:
name: http name: http
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.13.5" version: "0.13.4"
http_parser: http_parser:
dependency: transitive dependency: transitive
description: description:
name: http_parser name: http_parser
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.1" version: "4.0.0"
intl: intl:
dependency: transitive dependency: transitive
description: description:
@ -216,98 +218,98 @@ packages:
name: js name: js
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.6.4" version: "0.6.3"
lints: lints:
dependency: transitive dependency: transitive
description: description:
name: lints name: lints
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "1.0.1"
matcher: matcher:
dependency: transitive dependency: transitive
description: description:
name: matcher name: matcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.12.12" version: "0.12.11"
material_color_utilities: material_color_utilities:
dependency: transitive dependency: transitive
description: description:
name: material_color_utilities name: material_color_utilities
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.5" version: "0.1.3"
meta: meta:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.0" version: "1.7.0"
octo_image: octo_image:
dependency: transitive dependency: transitive
description: description:
name: octo_image name: octo_image
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.0.1"
path: path:
dependency: transitive dependency: transitive
description: description:
name: path name: path
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.2" version: "1.8.0"
path_provider: path_provider:
dependency: transitive dependency: transitive
description: description:
name: path_provider name: path_provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.11" version: "2.0.9"
path_provider_android: path_provider_android:
dependency: transitive dependency: transitive
description: description:
name: path_provider_android name: path_provider_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.20" version: "2.0.12"
path_provider_ios: path_provider_ios:
dependency: transitive dependency: transitive
description: description:
name: path_provider_ios name: path_provider_ios
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.11" version: "2.0.8"
path_provider_linux: path_provider_linux:
dependency: transitive dependency: transitive
description: description:
name: path_provider_linux name: path_provider_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.7" version: "2.1.5"
path_provider_macos: path_provider_macos:
dependency: transitive dependency: transitive
description: description:
name: path_provider_macos name: path_provider_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.6" version: "2.0.5"
path_provider_platform_interface: path_provider_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: path_provider_platform_interface name: path_provider_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.5" version: "2.0.3"
path_provider_windows: path_provider_windows:
dependency: transitive dependency: transitive
description: description:
name: path_provider_windows name: path_provider_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.3" version: "2.0.5"
pedantic: pedantic:
dependency: transitive dependency: transitive
description: description:
@ -328,7 +330,7 @@ packages:
name: plugin_platform_interface name: plugin_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.3" version: "2.1.2"
process: process:
dependency: transitive dependency: transitive
description: description:
@ -342,14 +344,14 @@ packages:
name: recase name: recase
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.1.0" version: "4.0.0"
rxdart: rxdart:
dependency: transitive dependency: transitive
description: description:
name: rxdart name: rxdart
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.27.5" version: "0.27.3"
scroll_pos: scroll_pos:
dependency: transitive dependency: transitive
description: description:
@ -368,21 +370,21 @@ packages:
name: source_span name: source_span
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.9.0" version: "1.8.1"
sqflite: sqflite:
dependency: transitive dependency: transitive
description: description:
name: sqflite name: sqflite
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.0.2"
sqflite_common: sqflite_common:
dependency: transitive dependency: transitive
description: description:
name: sqflite_common name: sqflite_common
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.0" version: "2.2.1"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
@ -403,91 +405,35 @@ packages:
name: string_scanner name: string_scanner
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.1.0"
synchronized: synchronized:
dependency: transitive dependency: transitive
description: description:
name: synchronized name: synchronized
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0+3" version: "3.0.0"
term_glyph: term_glyph:
dependency: transitive dependency: transitive
description: description:
name: term_glyph name: term_glyph
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.1" version: "1.2.0"
test_api: test_api:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.12" version: "0.4.8"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
name: typed_data name: typed_data
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.1" version: "1.3.0"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.6"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.19"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.17"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
uuid: uuid:
dependency: transitive dependency: transitive
description: description:
@ -501,56 +447,56 @@ packages:
name: vector_math name: vector_math
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.2" version: "2.1.1"
video_player: video_player:
dependency: "direct main" dependency: "direct main"
description: description:
name: video_player name: video_player
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.4.7" version: "2.3.0"
video_player_android: video_player_android:
dependency: transitive dependency: transitive
description: description:
name: video_player_android name: video_player_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.9" version: "2.3.1"
video_player_avfoundation: video_player_avfoundation:
dependency: transitive dependency: transitive
description: description:
name: video_player_avfoundation name: video_player_avfoundation
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.6" version: "2.3.1"
video_player_platform_interface: video_player_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: video_player_platform_interface name: video_player_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.1.4" version: "5.1.1"
video_player_web: video_player_web:
dependency: transitive dependency: transitive
description: description:
name: video_player_web name: video_player_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.12" version: "2.0.7"
win32: win32:
dependency: transitive dependency: transitive
description: description:
name: win32 name: win32
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "2.4.4"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:
name: xdg_directories name: xdg_directories
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.0+2" version: "0.2.0+1"
sdks: sdks:
dart: ">=2.18.0 <3.0.0" dart: ">=2.16.1 <3.0.0"
flutter: ">=3.3.0" flutter: ">=2.8.0"

View File

@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1 version: 1.0.0+1
environment: environment:
sdk: ">=2.17.0 <3.0.0" sdk: ">=2.16.1 <3.0.0"
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions
@ -39,12 +39,12 @@ dependencies:
dio: ^4.0.4 dio: ^4.0.4
# Fluent ui # Fluent ui
fluent_ui: ^4.0.1 fluent_ui: ^3.9.1
fluentui_system_icons: ^1.1.162 fluentui_system_icons: ^1.1.162
# Image processing # Image processing
cached_network_image: ^3.2.2 cached_network_image: ^3.2.0
cached_network_image_platform_interface: ^2.0.0 cached_network_image_platform_interface: ^1.0.0
# Audio player # Audio player
video_player: ^2.3.0 video_player: ^2.3.0
@ -53,9 +53,6 @@ dependencies:
# Audio integration in browser # Audio integration in browser
audio_service_web: ^0.1.1 audio_service_web: ^0.1.1
# Open external links
url_launcher: ^6.1.2
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
@ -65,7 +62,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your # activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint # package. See that file for information about deactivating specific lint
# rules and activating additional ones. # rules and activating additional ones.
flutter_lints: ^2.0.1 flutter_lints: ^1.0.0
# For information on the generic Dart part of this file, see the # For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec # following page: https://dart.dev/tools/pub/pubspec

3
renovate.json Normal file
View File

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

View File

@ -29,7 +29,7 @@
<!-- Favicon --> <!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/> <link rel="icon" type="image/png" href="favicon.png"/>
<title>Music Web Player</title> <title>music_web_player</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<style type="text/css"> <style type="text/css">