1 Commits
5 changed files with 22 additions and 3 deletions
@@ -61,7 +61,7 @@ class NotificationListener : NotificationListenerService() {
private fun getStopServiceNotificationAction(): PendingIntent {
val intent = Intent(MainActivity.ACTION_NOTIFICATION_LISTENER_SETTINGS).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
val pendingIntent = PendingIntent.getActivity(this, 0, intent, 0)
val pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_IMMUTABLE)
return pendingIntent
}
-1
View File
@@ -45,7 +45,6 @@ class _LyricsPageState extends State<LyricsPage> {
lyrics = fullLyrics;
fetching = false;
});
// print(thing);
}
}
+12
View File
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'lyrics.dart';
@@ -135,6 +136,17 @@ class _SearchResultState extends State<SearchResult> {
width: 75,
height: 75,
fit: BoxFit.cover,
errorBuilder: (context, error, stackTrace) {
Fluttertoast.showToast(
msg: 'Failed to load album art for: ${widget.title}',
toastLength: Toast.LENGTH_LONG);
return const Center(
child: SizedBox(
width: 75,
height: 75,
child: Icon(Icons.broken_image, size: 40)),
);
},
),
),
Flexible(
+7
View File
@@ -128,6 +128,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
fluttertoast:
dependency: "direct main"
description:
name: fluttertoast
url: "https://pub.dartlang.org"
source: hosted
version: "8.0.9"
html:
dependency: transitive
description:
+2 -1
View File
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.2.0+1
version: 0.2.1+1
environment:
sdk: ">=2.16.1 <3.0.0"
@@ -34,6 +34,7 @@ dependencies:
flutter_local_notifications: ^9.3.2
url_launcher: ^6.0.20
web_scraper: ^0.1.4
fluttertoast: ^8.0.9
dev_dependencies:
flutter_test: