Skip to content

Commit

Permalink
Release 1.0.1 (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Feb 13, 2024
1 parent d2e7dde commit 6b9eaae
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
1 change: 1 addition & 0 deletions lib/src/app/master_items.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ List<MasterItem> createMasterItems({
pageId: station.key,
pageBuilder: (context) => isOnline
? StationPage(
countryCode: countryCode,
starStation: (station) {},
unStarStation: libraryModel.unStarStation,
name: station.value.first.title ?? station.key,
Expand Down
31 changes: 21 additions & 10 deletions lib/src/radio/station_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import '../../data.dart';
import '../../globals.dart';
import '../../library.dart';
import '../../player.dart';
import '../../radio.dart';
import '../../theme.dart';
import '../../theme_data_x.dart';
import 'radio_fall_back_icon.dart';
Expand All @@ -23,12 +24,14 @@ class StationPage extends StatelessWidget {
required this.name,
required this.unStarStation,
required this.starStation,
this.countryCode,
});

final Audio station;
final String name;
final void Function(String station) unStarStation;
final void Function(String station) starStation;
final String? countryCode;

static Widget createIcon({
required BuildContext context,
Expand Down Expand Up @@ -71,6 +74,7 @@ class StationPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = context.t;
final radioModel = context.read<RadioModel>();
final tags = station.album?.isNotEmpty == false
? null
: <String>[
Expand Down Expand Up @@ -199,16 +203,23 @@ class StationPage extends StatelessWidget {
labels: tags!.map((e) => Text(e)).toList(),
isSelected: tags.map((e) => false).toList(),
onSelected: (index) {
navigatorKey.currentState?.push(
MaterialPageRoute(
builder: (context) {
return RadioSearchPage(
radioSearch: RadioSearch.tag,
searchQuery: tags[index],
);
},
),
);
radioModel
.init(
countryCode: countryCode,
index: libraryModel.radioindex,
)
.then(
(_) => navigatorKey.currentState?.push(
MaterialPageRoute(
builder: (context) {
return RadioSearchPage(
radioSearch: RadioSearch.tag,
searchQuery: tags[index],
);
},
),
),
);
},
)
: SizedBox(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: musicpod
description: Ubuntu music, radio and podcast player.
version: 1.0.0
version: 1.0.1

publish_to: "none"

Expand Down

0 comments on commit 6b9eaae

Please sign in to comment.