mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-29 21:02:09 +02:00
Add a selectable Mornye theme with shared glass controls, dialogs, sheets, notifications, and collection headers while retaining Material components. Update player artwork, lyrics transitions and highlighting, synchronized rolling time labels, volume controls, and compact navigation. Unify metadata, Library, search, and extension surfaces; preserve restored artwork and report extension load failures. Validation: full Flutter analyzer clean; 713 tests passed and 4 skipped; pinned Dart formatting and diff checks passed; signed ARM64 and ARM32 release APKs built and verified.
47 lines
1.3 KiB
Dart
47 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:spotiflac_android/providers/runtime_profile_provider.dart';
|
|
import 'package:spotiflac_android/theme/mornye_theme.dart';
|
|
import 'package:spotiflac_android/widgets/mornye_chrome.dart';
|
|
|
|
/// Repo cards share the Mornye glass material, including their detail pages.
|
|
class ExtensionRepoCard extends ConsumerWidget {
|
|
const ExtensionRepoCard({
|
|
super.key,
|
|
required this.child,
|
|
this.color,
|
|
this.radius = 20,
|
|
this.margin = const EdgeInsets.all(4),
|
|
});
|
|
|
|
final Widget child;
|
|
final Color? color;
|
|
final double radius;
|
|
final EdgeInsetsGeometry margin;
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
if (!context.isMornye) {
|
|
return Card(
|
|
elevation: 0,
|
|
color: color,
|
|
margin: margin,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(radius),
|
|
),
|
|
child: child,
|
|
);
|
|
}
|
|
return Padding(
|
|
padding: margin,
|
|
child: MornyeGlass.navigation(
|
|
radius: 24,
|
|
blurEnabled:
|
|
!ref.watch(lowEndDeviceProvider) ||
|
|
ref.watch(backdropBlurEnabledProvider),
|
|
child: Material(color: Colors.transparent, child: child),
|
|
),
|
|
);
|
|
}
|
|
}
|