Files
SpotiFLAC-Mobile/lib/widgets/app_content_card.dart
T
zarzet 63e1a9b9c8 feat(ui): add Mornye glass theme and adaptive music player
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.
2026-09-19 12:10:10 +07:00

47 lines
1.2 KiB
Dart

import 'package:flutter/material.dart';
import 'package:spotiflac_android/theme/mornye_theme.dart';
/// One inline surface, matching the metadata groups and dialog controls.
class AppContentCard extends StatelessWidget {
const AppContentCard({
super.key,
required this.child,
this.color,
this.shape,
this.elevation,
this.clipBehavior = Clip.none,
this.preserveColor = false,
});
final Widget child;
final Color? color;
final ShapeBorder? shape;
final double? elevation;
final Clip clipBehavior;
final bool preserveColor;
@override
Widget build(BuildContext context) {
if (!context.isMornye) {
return Card(
color: color,
shape: shape,
elevation: elevation,
clipBehavior: clipBehavior,
child: child,
);
}
return Material(
color: preserveColor ? color : MornyeTheme.controlFill(context),
borderRadius: BorderRadius.circular(28),
clipBehavior: Clip.antiAlias,
child: DividerTheme(
data: DividerTheme.of(
context,
).copyWith(color: MornyeTheme.metadataDividerColor(context)),
child: child,
),
);
}
}