Remove keyboardType for search's textField to enable swipe-type (#1362)

This commit is contained in:
Vishnu Mohandas 2023-08-30 13:36:59 +05:30 committed by GitHub
commit cd9d0a24a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -258,10 +258,12 @@ class _ZoomableImageState extends State<ZoomableImage>
_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);

View file

@ -88,7 +88,6 @@ class _SearchWidgetState extends State<SearchWidget> {
// 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,