Skip to content

Commit

Permalink
Updated for better rating
Browse files Browse the repository at this point in the history
  • Loading branch information
Sithira committed Oct 14, 2022
1 parent 1136bde commit 813f1bf
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ Fixed bugs, reorganized code and improved documentation.
* Better watchOS / WearOS support
* Better native control support
* New methods to control the player better

# 2.0.1
* Updated for better rating
22 changes: 10 additions & 12 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,17 @@ class _MyAppState extends State<MyApp> {
final FRPSource frpSource = FRPSource(
mediaSources: <MediaSources>[
MediaSources(
url: "http://pavo.prostreaming.net:8052/stream",
description: "Stream with ICY",
isPrimary: true,
title: "Z Fun hundred",
isAac: true
),
url: "http://pavo.prostreaming.net:8052/stream",
description: "Stream with ICY",
isPrimary: true,
title: "Z Fun hundred",
isAac: true),
MediaSources(
url: "http://209.133.216.3:7018/;stream.mp3",
description: "Hiru FM Sri Lanka",
isPrimary: false,
title: "HiruFM",
isAac: false
),
url: "http://209.133.216.3:7018/;stream.mp3",
description: "Hiru FM Sri Lanka",
isPrimary: false,
title: "HiruFM",
isAac: false),
],
);

Expand Down
19 changes: 7 additions & 12 deletions example/lib/test_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class TestPage extends StatefulWidget {

@override
_TestPage createState() => _TestPage();
}
Expand All @@ -11,15 +10,11 @@ class _TestPage extends State<TestPage> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Flutter Radio Player - Page Two')
),
body: Center(
child: Text('dssas'),
),
)
);
home: Scaffold(
appBar: AppBar(title: const Text('Flutter Radio Player - Page Two')),
body: Center(
child: Text('dssas'),
),
));
}

}
}
4 changes: 2 additions & 2 deletions example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ void main() {
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) => widget is Text &&
widget.data!.startsWith('Running on:'),
(Widget widget) =>
widget is Text && widget.data!.startsWith('Running on:'),
),
findsOneWidget,
);
Expand Down
9 changes: 7 additions & 2 deletions lib/models/frp_player_event.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
class FRPPlayerEvents {
FRPPlayerEvents({required this.data, required this.playbackStatus, required this.icyMetaDetails});
FRPPlayerEvents({
required this.data,
required this.playbackStatus,
required this.icyMetaDetails,
});

final String? data;
final String? playbackStatus;
Expand All @@ -9,6 +13,7 @@ class FRPPlayerEvents {
final name = fromJsonData["data"];
final playback = fromJsonData["playbackStatus"];
final icy = fromJsonData["icyMetaDetails"];
return FRPPlayerEvents(data: name, playbackStatus: playback, icyMetaDetails: icy);
return FRPPlayerEvents(
data: name, playbackStatus: playback, icyMetaDetails: icy);
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_radio_player
description: Online Radio Player for Flutter
description: Online Radio Player for Flutter which enable to play streaming URL. Supports Android and iOS as well as WearOs and watchOs
version: 2.0.0
homepage: "https://github.com/Sithira/FlutterRadioPlayer"

Expand Down

0 comments on commit 813f1bf

Please sign in to comment.