feat(mobile): Fullscreen image effects (#1529)

* fullscreen image effects

* toggles app bar instead of hides on tap

* edgeToEdge mode to render beneath navbar on android

* fixed appbar size

* fixed safearea for video and added opacity to appbar in gallery

* wrapped in black container to fix artifact on iOS

* changed to black

* added scaffold back woops
This commit is contained in:
martyfuhry
2023-02-03 11:26:05 -05:00
committed by GitHub
parent 7aab84f2d9
commit ff3cde4dfb
3 changed files with 68 additions and 41 deletions

View File

@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/shared/models/asset.dart';
class TopControlAppBar extends HookConsumerWidget with PreferredSizeWidget {
class TopControlAppBar extends HookConsumerWidget {
const TopControlAppBar({
Key? key,
required this.asset,
@@ -31,7 +31,6 @@ class TopControlAppBar extends HookConsumerWidget with PreferredSizeWidget {
return AppBar(
foregroundColor: Colors.grey[100],
toolbarHeight: 60,
backgroundColor: Colors.transparent,
leading: IconButton(
onPressed: () {
@@ -120,7 +119,4 @@ class TopControlAppBar extends HookConsumerWidget with PreferredSizeWidget {
],
);
}
@override
Size get preferredSize => const Size.fromHeight(kToolbarHeight);
}