From 813f1bfa4c212fd82271a33315aa50d9dae625b3 Mon Sep 17 00:00:00 2001 From: Sithira Munasinghe Date: Sat, 15 Oct 2022 01:58:00 +0530 Subject: [PATCH] Updated for better rating --- CHANGELOG.md | 3 +++ example/lib/main.dart | 22 ++++++++++------------ example/lib/test_page.dart | 19 +++++++------------ example/test/widget_test.dart | 4 ++-- lib/models/frp_player_event.dart | 9 +++++++-- pubspec.yaml | 2 +- 6 files changed, 30 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4b3d1d..88b1070 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/example/lib/main.dart b/example/lib/main.dart index 0faa81d..96bb13d 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -20,19 +20,17 @@ class _MyAppState extends State { final FRPSource frpSource = FRPSource( 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), ], ); diff --git a/example/lib/test_page.dart b/example/lib/test_page.dart index 8edcd71..5041c05 100644 --- a/example/lib/test_page.dart +++ b/example/lib/test_page.dart @@ -2,7 +2,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class TestPage extends StatefulWidget { - @override _TestPage createState() => _TestPage(); } @@ -11,15 +10,11 @@ class _TestPage extends State { @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'), + ), + )); } - -} \ No newline at end of file +} diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index 9a8cc11..b2a2eef 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -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, ); diff --git a/lib/models/frp_player_event.dart b/lib/models/frp_player_event.dart index 6e9a088..acc14fc 100644 --- a/lib/models/frp_player_event.dart +++ b/lib/models/frp_player_event.dart @@ -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; @@ -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); } } diff --git a/pubspec.yaml b/pubspec.yaml index 5e0f8c2..1419f3f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"