update image resolution and search bar cursor color
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
|
||||
import '../../constants.dart';
|
||||
import 'show_img.dart';
|
||||
|
||||
typedef OnFile = void Function(File?);
|
||||
@@ -57,8 +58,8 @@ class _LocalImagePickerState extends State<LocalImagePicker> {
|
||||
if (camera || gallery) {
|
||||
var selectedFile = await ImagePicker().pickImage(
|
||||
source: camera ? ImageSource.camera : ImageSource.gallery,
|
||||
imageQuality: 80,
|
||||
maxWidth: 1000);
|
||||
imageQuality: imageQuality,
|
||||
maxWidth: imageMaxWidth);
|
||||
if (selectedFile != null) {
|
||||
setState(() {
|
||||
this.file = File(selectedFile.path);
|
||||
|
||||
Reference in New Issue
Block a user