π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Fix file bottom bar not disappearing when in fullscreen
ashilkn522d1da0e9cb
diff --git a/mobile/lib/ui/viewer/file/file_bottom_bar.dart b/mobile/lib/ui/viewer/file/file_bottom_bar.dartindex 4d17a25f59..a235560c13 100644--- a/mobile/lib/ui/viewer/file/file_bottom_bar.dart+++ b/mobile/lib/ui/viewer/file/file_bottom_bar.dart@@ -151,59 +151,66 @@ class FileBottomBarState extends State<FileBottomBar> {return ValueListenableBuilder(valueListenable: widget.enableFullScreenNotifier,builder: (BuildContext context, bool isFullScreen, _) {- return Align(- alignment: Alignment.bottomCenter,- child: Container(- decoration: BoxDecoration(- gradient: LinearGradient(- begin: Alignment.topCenter,- end: Alignment.bottomCenter,- colors: [- Colors.transparent,- Colors.black.withOpacity(0.6),- Colors.black.withOpacity(0.72),- ],- stops: const [0, 0.8, 1],- ),- ),- child: Padding(- padding: EdgeInsets.only(bottom: safeAreaBottomPadding),- child: Column(- mainAxisSize: MainAxisSize.min,- children: [- widget.file.caption?.isNotEmpty ?? false- ? Padding(- padding: const EdgeInsets.fromLTRB(- 16,- 12,- 16,- 0,- ),- child: GestureDetector(- onTap: () async {- await _displayDetails(widget.file);- await Future.delayed(- const Duration(milliseconds: 500),- ); //Waiting for some time till the caption gets updated in db if the user closes the bottom sheet without pressing 'done'- safeRefresh();- },- child: Text(- widget.file.caption!,- overflow: TextOverflow.ellipsis,- maxLines: 1,- style: getEnteTextTheme(context)- .mini- .copyWith(color: textBaseDark),- textAlign: TextAlign.center,- ),- ),- )- : const SizedBox.shrink(),- Row(- mainAxisAlignment: MainAxisAlignment.spaceAround,- children: children,+ return IgnorePointer(+ ignoring: isFullScreen,+ child: AnimatedOpacity(+ opacity: isFullScreen ? 0 : 1,+ duration: const Duration(milliseconds: 150),+ child: Align(+ alignment: Alignment.bottomCenter,+ child: Container(+ decoration: BoxDecoration(+ gradient: LinearGradient(+ begin: Alignment.topCenter,+ end: Alignment.bottomCenter,+ colors: [+ Colors.transparent,+ Colors.black.withOpacity(0.6),+ Colors.black.withOpacity(0.72),+ ],+ stops: const [0, 0.8, 1],),- ],+ ),+ child: Padding(+ padding: EdgeInsets.only(bottom: safeAreaBottomPadding),+ child: Column(+ mainAxisSize: MainAxisSize.min,+ children: [+ widget.file.caption?.isNotEmpty ?? false+ ? Padding(+ padding: const EdgeInsets.fromLTRB(+ 16,+ 12,+ 16,+ 0,+ ),+ child: GestureDetector(+ onTap: () async {+ await _displayDetails(widget.file);+ await Future.delayed(+ const Duration(milliseconds: 500),+ ); //Waiting for some time till the caption gets updated in db if the user closes the bottom sheet without pressing 'done'+ safeRefresh();+ },+ child: Text(+ widget.file.caption!,+ overflow: TextOverflow.ellipsis,+ maxLines: 1,+ style: getEnteTextTheme(context)+ .mini+ .copyWith(color: textBaseDark),+ textAlign: TextAlign.center,+ ),+ ),+ )+ : const SizedBox.shrink(),+ Row(+ mainAxisAlignment: MainAxisAlignment.spaceAround,+ children: children,+ ),+ ],+ ),+ ),),),),