본문 바로가기
728x90

개발/Flutter225

이미지 사이즈 바꾸기 File? getResizeImage(File originalImage){ Image image = decodeImage(originalImage.readAsBytesSync())!; int standard = 800; int width = image.width; int height = image.height; double ratio = width/height; Image? resizedImage; if(ratio>1) resizedImage = copyResize(image, width: min(width, standard), height: min(width.toDouble()/ratio, standard.toDouble()/ratio).toInt()); else resizedImage = copyRe.. 2022. 3. 19.
unfocus, keyboard down, focus 해제하고 싶을 때, 키보드 내리고 싶을 때 FocusManager.instance.primaryFocus?.unfocus(); 2022. 3. 14.
flutter 내부 db 중에 매우 빠르다는 hive https://velog.io/@ristretto/Flutter-Hive를-사용해보자 Flutter - Hive를 사용해보자 Hive를 사용하면 앱 로컬에 데이터를 저장할 수 있다.테마, 유저 설정, 로그인 데이터와 같이 앱을 껐다가 켜도 계속 유지하고 싶은 데이터가 있을 때 빠르고 초-간단한 Hive를 이용해보자 !main() 함 velog.io https://pub.dev/packages/hive 2022. 3. 7.
Appbar back button color 변경 http://daplus.net/flutter-appbar-뒤로-버튼-색상을-변경하는-방법/ [flutter] appBar 뒤로 버튼 색상을 변경하는 방법 - 리뷰나라 appBar의 자동 뒤로 버튼을 다른 색상으로 변경하는 방법을 알 수 없습니다. 그것은 비계 아래에 있고 그것을 조사하려고 노력했지만 머리를 감쌀 수는 없습니다. return Scaffold( appBar: AppBar( background daplus.net 2022. 2. 28.
728x90