mirror of
https://github.com/TheGreatPepix/YAMD.git
synced 2026-11-03 01:33:02 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 23e894c06d | |||
| 38f71ed9e4 |
@@ -48,7 +48,7 @@ class FakeCore implements Core {
|
|||||||
'theme': _theme,
|
'theme': _theme,
|
||||||
'quality': _quality,
|
'quality': _quality,
|
||||||
'concurrency': _concurrency,
|
'concurrency': _concurrency,
|
||||||
'version': '2.0.1',
|
'version': '2.0.2',
|
||||||
};
|
};
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class _Header extends StatelessWidget {
|
|||||||
required this.explicit,
|
required this.explicit,
|
||||||
required this.lines,
|
required this.lines,
|
||||||
this.action,
|
this.action,
|
||||||
|
this.end = 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Widget cover;
|
final Widget cover;
|
||||||
@@ -52,11 +53,12 @@ class _Header extends StatelessWidget {
|
|||||||
final bool explicit;
|
final bool explicit;
|
||||||
final List<String> lines;
|
final List<String> lines;
|
||||||
final Widget? action;
|
final Widget? action;
|
||||||
|
final double end;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final scheme = Theme.of(context).colorScheme;
|
final scheme = Theme.of(context).colorScheme;
|
||||||
return Row(
|
final row = Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
cover,
|
cover,
|
||||||
@@ -100,6 +102,7 @@ class _Header extends StatelessWidget {
|
|||||||
if (action != null) action!,
|
if (action != null) action!,
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
return Padding(padding: EdgeInsets.only(right: end), child: row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,11 +139,12 @@ class _ArtistViewState extends State<_ArtistView> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(28, 24, 28, 0),
|
padding: const EdgeInsets.fromLTRB(28, 24, 0, 0),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
_Header(
|
_Header(
|
||||||
|
end: 28,
|
||||||
cover: Cover(url: p.cover, size: 84, kind: ReleaseKind.artist),
|
cover: Cover(url: p.cover, size: 84, kind: ReleaseKind.artist),
|
||||||
over: 'ИСПОЛНИТЕЛЬ',
|
over: 'ИСПОЛНИТЕЛЬ',
|
||||||
title: p.title,
|
title: p.title,
|
||||||
@@ -165,7 +169,7 @@ class _ArtistViewState extends State<_ArtistView> {
|
|||||||
const SizedBox(height: 18),
|
const SizedBox(height: 18),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: GridView.builder(
|
child: GridView.builder(
|
||||||
padding: const EdgeInsets.only(bottom: 24),
|
padding: const EdgeInsets.only(right: 28, bottom: 24),
|
||||||
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
||||||
maxCrossAxisExtent: 220,
|
maxCrossAxisExtent: 220,
|
||||||
mainAxisSpacing: 22,
|
mainAxisSpacing: 22,
|
||||||
@@ -356,11 +360,12 @@ class _AlbumView extends StatelessWidget {
|
|||||||
final album = picker.albums.first;
|
final album = picker.albums.first;
|
||||||
final state = picker.albumState(album.id);
|
final state = picker.albumState(album.id);
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(28, 24, 28, 0),
|
padding: const EdgeInsets.fromLTRB(28, 24, 0, 0),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
_Header(
|
_Header(
|
||||||
|
end: 28,
|
||||||
cover: Cover(url: p.cover, size: 150, kind: ReleaseKind.album, radius: 16),
|
cover: Cover(url: p.cover, size: 150, kind: ReleaseKind.album, radius: 16),
|
||||||
over: ['АЛЬБОМ', if (p.year > 0) '${p.year}'].join(' · '),
|
over: ['АЛЬБОМ', if (p.year > 0) '${p.year}'].join(' · '),
|
||||||
title: p.title,
|
title: p.title,
|
||||||
@@ -377,7 +382,7 @@ class _AlbumView extends StatelessWidget {
|
|||||||
const SizedBox(height: 18),
|
const SizedBox(height: 18),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
padding: const EdgeInsets.only(bottom: 24),
|
padding: const EdgeInsets.only(right: 28, bottom: 24),
|
||||||
child: TrackChecklist(picker: picker, albumId: album.id, indent: 0),
|
child: TrackChecklist(picker: picker, albumId: album.id, indent: 0),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
name: ymd
|
name: ymd
|
||||||
description: "YAMD, Yet Another Music Downloader: окно на Flutter поверх ядра ymcore."
|
description: "YAMD, Yet Another Music Downloader: окно на Flutter поверх ядра ymcore."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 2.0.1+2
|
version: 2.0.2+3
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.8.0
|
sdk: ^3.8.0
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ void main() {
|
|||||||
final (core, c) = await _open(tester);
|
final (core, c) = await _open(tester);
|
||||||
|
|
||||||
expect(c.ready, isTrue);
|
expect(c.ready, isTrue);
|
||||||
expect(c.version, '2.0.1');
|
expect(c.version, '2.0.2');
|
||||||
expect(find.text('Войти'), findsOneWidget);
|
expect(find.text('Войти'), findsOneWidget);
|
||||||
expect(find.text('Что скачаем?'), findsNothing);
|
expect(find.text('Что скачаем?'), findsNothing);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ import (
|
|||||||
"ymd/internal/yam"
|
"ymd/internal/yam"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Version = "2.0.1"
|
const Version = "2.0.2"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
accNone = "none"
|
accNone = "none"
|
||||||
|
|||||||
Reference in New Issue
Block a user