mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 14:29:26 +03:00
chore(mobile): remove background from asset viewer back button (#26851)
We recently changed the asset viewer to use a gradient. The circle button looks out of place now.
This commit is contained in:
@@ -113,17 +113,14 @@ class _AppBarBackButton extends ConsumerWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final showingDetails = ref.watch(assetViewerProvider.select((state) => state.showingDetails));
|
final showingDetails = ref.watch(assetViewerProvider.select((state) => state.showingDetails));
|
||||||
final backgroundColor = showingDetails && !context.isDarkTheme ? Colors.white : Colors.black;
|
|
||||||
final foregroundColor = showingDetails && !context.isDarkTheme ? Colors.black : Colors.white;
|
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(left: 12.0),
|
padding: const EdgeInsets.only(left: 12.0),
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: backgroundColor,
|
backgroundColor: showingDetails ? context.colorScheme.surface : Colors.transparent,
|
||||||
shape: const CircleBorder(),
|
shape: const CircleBorder(),
|
||||||
iconSize: 22,
|
iconSize: 22,
|
||||||
iconColor: foregroundColor,
|
iconColor: showingDetails ? context.colorScheme.onSurface : Colors.white,
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
elevation: showingDetails ? 4 : 0,
|
elevation: showingDetails ? 4 : 0,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user