Compare commits

..

No commits in common. "bbe3394e9e0a46cd61630d4d2b75d08922df8118" and "cd475e93d08a19887bae81ecadb9d9449a432655" have entirely different histories.

4 changed files with 12 additions and 22 deletions

View File

@ -96,9 +96,7 @@ class LastFMLoginPage extends HookConsumerWidget {
FormField(
label: Text(context.l10n.username),
key: usernameKey,
validator: const NotEmptyValidator(
message: "Username is required",
),
validator: const NotEmptyValidator(),
child: TextField(
autofillHints: const [
AutofillHints.username,
@ -109,9 +107,7 @@ class LastFMLoginPage extends HookConsumerWidget {
),
FormField(
key: passwordKey,
validator: const NotEmptyValidator(
message: "Password is required",
),
validator: const NotEmptyValidator(),
label: Text(context.l10n.password),
child: TextField(
autofillHints: const [

View File

@ -24,9 +24,6 @@ const supportedAudioTypes = [
"audio/opus",
"audio/wav",
"audio/aac",
"audio/flac",
"audio/x-flac",
"audio/x-wav",
];
const imgMimeToExt = {
@ -71,16 +68,13 @@ final localTracksProvider =
await Directory(location).list(recursive: true).toList();
entities.addAll(
dirEntities.where(
(e) {
final mime = lookupMimeType(e.path) ??
(extension(e.path) == ".opus" ? "audio/opus" : null);
print("${basename(e.path)}: $mime");
return e is File && supportedAudioTypes.contains(mime);
},
).cast<File>(),
dirEntities
.where(
(e) =>
e is File &&
supportedAudioTypes.contains(lookupMimeType(e.path)),
)
.cast<File>(),
);
} catch (e, stack) {
AppLogger.reportError(e, stack);

View File

@ -1539,10 +1539,10 @@ packages:
dependency: "direct main"
description:
name: mime
sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
sha256: "801fd0b26f14a4a58ccb09d5892c3fbdeff209594300a542492cf13fba9d247a"
url: "https://pub.dev"
source: hosted
version: "2.0.0"
version: "1.0.6"
nm:
dependency: transitive
description:

View File

@ -88,7 +88,7 @@ dependencies:
media_kit: ^1.1.10+1
media_kit_libs_audio: ^1.0.4
metadata_god: ^1.0.0
mime: ^2.0.0
mime: ^1.0.2
open_file: ^3.5.10
package_info_plus: ^6.0.0
palette_generator: ^0.3.3