Skip to content

Commit

Permalink
Release 1.3.7 (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed May 5, 2024
1 parent c617266 commit 9fd4a47
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 29 deletions.
17 changes: 14 additions & 3 deletions lib/src/patch_notes/patch_notes.dart
Expand Up @@ -196,8 +196,19 @@ const kPatchNotes20240424 = 'Hello MusicPod Users, this update includes\n'
'\n\nIf you like MusicPod please consider sponsoring me:'
'\n';

const kRecentPatchNotesDisposed = kPatchNotes20240424disposed;
const kRecentPatchNotesTitle = kPatchNotesTitle20240424;
const kRecentPatchNotes = kPatchNotes20240424;
// 2024 05 205
const kPatchNotes20240505disposed = 'patchNotes20240505disposed';
const kPatchNotesTitle20240505 = 'Patch notes: 2024-05-05';
const kPatchNotes20240505 = 'Hello MusicPod Users, this update includes\n'
'\n* improvements to the tray, should be more reliable now'
'\n* station pages give you more space on scroll now'
'\n* other pages will follow'
'\n* bug fixes'
'\n\nIf you like MusicPod please consider sponsoring me:'
'\n';

const kRecentPatchNotesDisposed = kPatchNotes20240505disposed;
const kRecentPatchNotesTitle = kPatchNotesTitle20240505;
const kRecentPatchNotes = kPatchNotes20240505;

const kPatchNotesDisposed = 'kPatchNotesDisposed';
2 changes: 1 addition & 1 deletion lib/src/radio/view/radio_page_tag_bar.dart
@@ -1,3 +1,4 @@
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';

import '../../../get.dart';
Expand All @@ -9,7 +10,6 @@ import '../../library/library_model.dart';
import '../radio_model.dart';
import 'radio_search.dart';
import 'radio_search_page.dart';
import 'package:collection/collection.dart';

class RadioPageTagBar extends StatelessWidget {
const RadioPageTagBar({super.key, required this.station});
Expand Down
48 changes: 27 additions & 21 deletions lib/src/radio/view/sliver_radio_page_header.dart
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:yaru/yaru.dart';

import '../../../build_context_x.dart';
import '../../../common.dart';
import '../../../constants.dart';
import '../../../data.dart';
Expand All @@ -19,40 +20,42 @@ class SliverRadioPageHeader extends StatelessWidget {
@override
Widget build(BuildContext context) {
const size = kMaxAudioPageHeaderHeight;
final smallWindow = context.m.size.width < kMasterDetailBreakPoint;

return SliverAppBar(
backgroundColor: Colors.transparent,
automaticallyImplyLeading: false,
expandedHeight: size + kYaruPagePadding,
expandedHeight: size,
flexibleSpace: Align(
alignment: Alignment.centerLeft,
child: Padding(
padding: const EdgeInsets.only(
top: kYaruPagePadding,
),
child: Row(
children: [
child: Row(
mainAxisAlignment:
smallWindow ? MainAxisAlignment.center : MainAxisAlignment.start,
children: [
if (!smallWindow)
const SizedBox(
width: 20,
),
SizedBox(
width: size,
height: size,
child: ClipRRect(
borderRadius: BorderRadius.circular(10),
child: SafeNetworkImage(
fallBackIcon: RadioFallBackIcon(
iconSize: size / 2,
station: station,
),
url: station.imageUrl,
fit: BoxFit.scaleDown,
SizedBox(
width: size,
height: size,
child: ClipRRect(
borderRadius: BorderRadius.circular(10),
child: SafeNetworkImage(
fallBackIcon: RadioFallBackIcon(
iconSize: size / 2,
station: station,
),
url: station.imageUrl,
fit: BoxFit.scaleDown,
),
),
),
if (!smallWindow)
const SizedBox(
width: kYaruPagePadding,
),
if (!smallWindow)
Expanded(
child: SizedBox(
height: size,
Expand Down Expand Up @@ -84,8 +87,11 @@ class SliverRadioPageHeader extends StatelessWidget {
),
),
),
],
),
if (!smallWindow)
const SizedBox(
width: kYaruPagePadding,
),
],
),
),
);
Expand Down
12 changes: 9 additions & 3 deletions lib/src/radio/view/station_page.dart
Expand Up @@ -3,6 +3,7 @@ import 'package:yaru/yaru.dart';

import '../../../build_context_x.dart';
import '../../../common.dart';
import '../../../constants.dart';
import '../../../data.dart';
import '../../../get.dart';
import '../../../theme_data_x.dart';
Expand All @@ -25,8 +26,10 @@ class StationPage extends StatelessWidget with WatchItMixin {
final isOnline = watchPropertyValue((PlayerModel m) => m.isOnline);
if (!isOnline) return const OfflinePage();
final theme = context.t;
final smallWindow = context.m.size.width < 1200;
final color = smallWindow
final size = context.m.size;
final wrappedInContainer = size.width < 1200;

final color = wrappedInContainer
? null
: theme.colorScheme.background.scale(
lightness: theme.isLight ? -0.02 : 0.02,
Expand All @@ -42,7 +45,6 @@ class StationPage extends StatelessWidget with WatchItMixin {
: const SizedBox.shrink(),
),
body: AdaptiveContainer(
padding: EdgeInsets.zero,
child: CustomScrollView(
slivers: [
SliverRadioPageHeader(station: station),
Expand Down Expand Up @@ -79,7 +81,11 @@ class _StationPageControlPanel extends StatelessWidget {

@override
Widget build(BuildContext context) {
final size = context.m.size;
final smallWindow = size.width < kMasterDetailBreakPoint;
return Row(
mainAxisAlignment:
smallWindow ? MainAxisAlignment.center : MainAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Center(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: musicpod
description: Ubuntu music, radio and podcast player.
version: 1.3.6
version: 1.3.7

publish_to: "none"

Expand Down

0 comments on commit 9fd4a47

Please sign in to comment.