Skip to content

Commit

Permalink
Enhanced icon quality for Flow playlists.
Browse files Browse the repository at this point in the history
  • Loading branch information
PetitPrinc3 committed Dec 1, 2024
1 parent 8d8f231 commit 654ce5b
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 76 deletions.
1 change: 0 additions & 1 deletion lib/ui/details_screens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'package:intl/intl.dart';
import 'package:refreezer/fonts/deezer_icons.dart';
import 'package:refreezer/main.dart';
import 'package:refreezer/settings.dart';
import 'package:refreezer/ui/player_screen.dart';
import 'package:refreezer/utils/navigator_keys.dart';
import 'package:share_plus/share_plus.dart';

Expand Down
1 change: 0 additions & 1 deletion lib/ui/menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'package:get_it/get_it.dart';
import 'package:numberpicker/numberpicker.dart';
import 'package:refreezer/fonts/deezer_icons.dart';
import 'package:refreezer/settings.dart';
import 'package:refreezer/ui/player_screen.dart';
import 'package:share_plus/share_plus.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:wakelock_plus/wakelock_plus.dart';
Expand Down
8 changes: 4 additions & 4 deletions lib/ui/tiles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ class SmartTrackListTile extends StatelessWidget {
CachedImage(
width: 128,
height: 128,
url: smartTrackList.cover?.thumb ?? '',
url: smartTrackList.cover?.full ?? '',
rounded: true,
),
SizedBox(
Expand Down Expand Up @@ -425,7 +425,7 @@ class FlowTrackListTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox(
width: 150,
width: 120,
child: InkWell(
onTap: onTap,
onLongPress: onHold,
Expand All @@ -436,9 +436,9 @@ class FlowTrackListTile extends StatelessWidget {
height: 4,
),
CachedImage(
url: deezerFlow.cover?.thumb ?? '',
url: deezerFlow.cover?.full ?? '',
circular: true,
width: 100,
width: 90,
),
Container(
height: 8,
Expand Down
143 changes: 73 additions & 70 deletions lib/ui/updater.dart
Original file line number Diff line number Diff line change
Expand Up @@ -197,81 +197,84 @@ class _UpdaterScreenState extends State<UpdaterScreen> {
if (!_error &&
!_loading &&
(_latestRelease?.version ?? Version(0, 0, 0)) > _currentVersion)
Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'New update available!'.i18n +
' ' +
_latestRelease!.version.toString(),
textAlign: TextAlign.center,
Expanded(
child: Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'New update available!'.i18n +
' ' +
_latestRelease!.version.toString(),
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 20.0, fontWeight: FontWeight.bold),
),
),
Text(
'Current version: ' + _currentVersion.toString(),
style: const TextStyle(
fontSize: 20.0, fontWeight: FontWeight.bold),
fontSize: 14.0, fontStyle: FontStyle.italic),
),
),
Text(
'Current version: ' + _currentVersion.toString(),
style: const TextStyle(
fontSize: 14.0, fontStyle: FontStyle.italic),
),
Container(height: 8.0),
const FreezerDivider(),
Container(height: 8.0),
const Text(
'Changelog',
style: TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
),
Container(height: 8.0),
const FreezerDivider(),
Padding(
padding: const EdgeInsets.fromLTRB(16, 4, 16, 8),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Markdown(
controller: scrollController,
data: _latestRelease?.changelog ?? '',
shrinkWrap: true,
)
],
Container(height: 8.0),
const FreezerDivider(),
Container(height: 8.0),
const Text(
'Changelog',
style:
TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
),
),
const FreezerDivider(),
Container(height: 8.0),
//Available download
if (_versionDownload != null)
Column(children: [
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).primaryColor,
Container(height: 8.0),
const FreezerDivider(),
Padding(
padding: const EdgeInsets.fromLTRB(16, 4, 16, 8),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Markdown(
controller: scrollController,
data: _latestRelease?.changelog ?? '',
shrinkWrap: true,
)
],
),
),
const FreezerDivider(),
Container(height: 8.0),
//Available download
if (_versionDownload != null)
Column(children: [
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).primaryColor,
),
onPressed: _buttonEnabled
? () {
setState(() => _buttonEnabled = false);
_download();
}
: null,
child: Text(
'Download'.i18n + ' (${_versionDownload?.abi})')),
Padding(
padding: const EdgeInsets.all(8.0),
child: LinearProgressIndicator(
value: _progress,
color: Theme.of(context).primaryColor,
),
onPressed: _buttonEnabled
? () {
setState(() => _buttonEnabled = false);
_download();
}
: null,
child: Text(
'Download'.i18n + ' (${_versionDownload?.abi})')),
Padding(
padding: const EdgeInsets.all(8.0),
child: LinearProgressIndicator(
value: _progress,
color: Theme.of(context).primaryColor,
),
)
]),
//Unsupported arch
if (_versionDownload == null)
Text(
'Unsupported platform!'.i18n + ' $_arch',
textAlign: TextAlign.center,
style: const TextStyle(fontSize: 16.0),
)
]),
//Unsupported arch
if (_versionDownload == null)
Text(
'Unsupported platform!'.i18n + ' $_arch',
textAlign: TextAlign.center,
style: const TextStyle(fontSize: 16.0),
)
],
],
),
),
ListenableBuilder(
listenable: playerBarState,
Expand Down

0 comments on commit 654ce5b

Please sign in to comment.