From c465be2470933976ff868d61f51603b2675eddc5 Mon Sep 17 00:00:00 2001 From: stonegate Date: Sat, 18 Apr 2020 13:27:43 +0800 Subject: [PATCH] modified: README.md --- README.md | 3 +-- lib/util/custompaint.dart | 37 +++++++++++++++++++++++++++++++++++-- lib/util/episodegrid.dart | 2 +- 3 files changed, 37 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9184244..844c583 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@

+Get it on Google Play Enjoy podcasts with Tsacdop. @@ -15,8 +16,6 @@ Credit to flutter team and all involved plugins, especially [webfeed](https://g The podcasts search engine is powered by [ListenNotes](https://listennotes.com). -Get it on Google Play - ## Features * Subscriptoin group management * Playlist support diff --git a/lib/util/custompaint.dart b/lib/util/custompaint.dart index 9993935..820bb95 100644 --- a/lib/util/custompaint.dart +++ b/lib/util/custompaint.dart @@ -91,7 +91,7 @@ class StarSky extends CustomPainter { class ListenedPainter extends CustomPainter { Color _color; double stroke; - ListenedPainter(this._color,{this.stroke = 1.0}); + ListenedPainter(this._color, {this.stroke = 1.0}); @override void paint(Canvas canvas, Size size) { Paint _paint = Paint() @@ -100,7 +100,6 @@ class ListenedPainter extends CustomPainter { ..strokeCap = StrokeCap.round ..style = PaintingStyle.stroke; Path _path = Path(); - _path.moveTo(size.width / 6, size.height * 3 / 8); _path.lineTo(size.width / 6, size.height * 5 / 8); _path.moveTo(size.width / 3, size.height / 4); @@ -121,6 +120,40 @@ class ListenedPainter extends CustomPainter { } } +//Listened Completely indicator +class ListenedAllPainter extends CustomPainter { + Color _color; + double stroke; + ListenedAllPainter(this._color, {this.stroke = 1.0}); + @override + void paint(Canvas canvas, Size size) { + Paint _paint = Paint() + ..color = _color + ..strokeWidth = stroke + ..strokeCap = StrokeCap.round + ..style = PaintingStyle.stroke; + Path _path = Path(); + _path.moveTo(size.width / 6, size.height * 3 / 8); + _path.lineTo(size.width / 6, size.height * 5 / 8); + _path.moveTo(size.width / 3, size.height / 4); + _path.lineTo(size.width / 3, size.height * 3 / 4); + _path.moveTo(size.width / 2, size.height * 3 / 8); + _path.lineTo(size.width / 2, size.height * 5 / 8); + _path.moveTo(size.width * 2 / 3, size.height * 4 / 9); + _path.lineTo(size.width * 2 / 3, size.height * 5 / 9); + _path.moveTo(size.width / 2, size.height * 3 / 4); + _path.lineTo(size.width * 2 / 3, size.height * 7 / 8); + _path.lineTo(size.width * 7 / 8, size.height * 5 / 8); + + canvas.drawPath(_path, _paint); + } + + @override + bool shouldRepaint(CustomPainter oldDelegate) { + return true; + } +} + //Wave play indicator class WavePainter extends CustomPainter { double _fraction; diff --git a/lib/util/episodegrid.dart b/lib/util/episodegrid.dart index 390a4e5..420d574 100644 --- a/lib/util/episodegrid.dart +++ b/lib/util/episodegrid.dart @@ -257,7 +257,7 @@ class EpisodeGrid extends StatelessWidget { ), child: CustomPaint( painter: - ListenedPainter( + ListenedAllPainter( Colors.white, )), )