From de062e8dbceacd273689e782529c5a7431c55167 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Wed, 30 Aug 2023 13:30:44 +0530 Subject: [PATCH] Remove keyboardType for search's textField to enable swipe-type --- lib/ui/viewer/file/zoomable_image.dart | 8 +++++--- lib/ui/viewer/search/search_widget.dart | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ui/viewer/file/zoomable_image.dart b/lib/ui/viewer/file/zoomable_image.dart index 191053cce..b995ba939 100644 --- a/lib/ui/viewer/file/zoomable_image.dart +++ b/lib/ui/viewer/file/zoomable_image.dart @@ -258,10 +258,12 @@ class _ZoomableImageState extends State _isZooming && _photoViewController.scale != null; ImageInfo? finalImageInfo; - if(shouldFixPosition) { + if (shouldFixPosition) { if (kDebugMode) { - showToast(context, - 'Updating photo scale zooming: $_isZooming and scale: ${_photoViewController.scale}'); + showToast( + context, + 'Updating photo scale zooming: $_isZooming and scale: ${_photoViewController.scale}', + ); } final prevImageInfo = await getImageInfo(previewImageProvider); finalImageInfo = await getImageInfo(finalImageProvider); diff --git a/lib/ui/viewer/search/search_widget.dart b/lib/ui/viewer/search/search_widget.dart index 293fd31a4..a704bd6a1 100644 --- a/lib/ui/viewer/search/search_widget.dart +++ b/lib/ui/viewer/search/search_widget.dart @@ -88,7 +88,6 @@ class _SearchWidgetState extends State { // Below parameters are to disable auto-suggestion enableSuggestions: false, autocorrect: false, - keyboardType: TextInputType.visiblePassword, // Above parameters are to disable auto-suggestion decoration: InputDecoration( hintText: S.of(context).searchHintText,