update image resolution and search bar cursor color

This commit is contained in:
tzw
2025-02-10 11:23:38 +06:30
parent fb6a9f691a
commit 9fdc20a61b
13 changed files with 246 additions and 203 deletions

View File

@@ -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);