본문 바로가기

Flutter8

Flutter : 안드로이드 뒤로가기 키 막기 안드로이드에서 팝업오픈 후 뒤로가기 키로 팝업이 닫히지 않도록 처리할 필요가 생겨서 사용함.PopScope( canPop: false, .. ..), 2024. 6. 8.
배경 반투명 효과 배경 반투명 효과   ClipRRect( child: BackdropFilter( filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10), child: widget…. 2024. 6. 7.
스크롤시 앱바 자동숨기기 + 그리드 형태로 목록 출력하기 (2열) 스크롤시 앱바 자동숨기기 + 그리드 형태로 목록 출력하기 (2열)@override Widget build(BuildContext context) { return CustomScrollView( controller: ScrollController(), physics: const AlwaysScrollableScrollPhysics( parent: BouncingScrollPhysics(), ), slivers: [ SliverAppBar( toolbarHeight: 40, backgroundColor: Colors.purple.shade100, title: const Text('제목'), .. 2024. 6. 7.
딜레이 (delay) 딜레이 (delay)   await Future.delayed(const Duration(seconds: 1)); 2024. 6. 5.
안드로이드 키스토어(keystore) 만들기 안드로이드 키스토어(keystore) 만들기keytool -genkey -v -keystore ~/myprojectname.jks -keyalg RSA -keysize 2048 -validity 10000 -alias myprojectname 계정디렉토리 아래에 myprojectname.jks 파일이 만들어진다. /Users/myId/myprojectname.jks 2024. 6. 5.
안드로이드 apk 빌드하기 안드로이드 apk 빌드하기 1. 터미널 혹은 커맨드창에서 '빌드하고 싶은 플러터 프로젝트 디렉토리로 이동'cd /Users/myid/flutter/myproject 2. 빌드flutter build apk --release --target-platform=android-arm64 입력 3. 빌드 파일 경로 [Project Forder]/build/app/outputs/apk/release/app-release.apk 2024. 6. 5.
Flutter : FlutterSecureStorage 오류 Flutter : FlutterSecureStorage 를 사용하여 앱 개발 테스트 중 앱 재설치시 데이터를 삭제하지 않으면 앱 시작시 오류 발생테스트 폰 : 삼성갤럭시S21(Android 13)처리 1 (아래와 같이 옵션 추가)final sStorage = const FlutterSecureStorage( aOptions: AndroidOptions(encryptedSharedPreferences: true)); 해결된 듯 했으나,삼성갤럭시노트10(Android 12)에서 비슷한 오류 발생 (위 S21의 경우 데이터 삭제 후 재설치하면 문제 없었으나, 이번에는 데이터를 삭제하고 재설치해도 동일한 문제 계속 발생) 에러 메세지 :error: PlatformException(Exception en.. 2024. 6. 4.
Flutter : appBar 투명처리 (스크롤시에도) appBar 투명처리시 아래와 같이 설정했으나,backgroundColor: Colors.transparent, 화면 스크롤처리 시 미세하게 반투명한 앱바가 보이는 현상 발생.해당 현상 없애려면 아래와 같이 추가 설정 필요Scaffold( // height of the body is extended to include the height of the AppBar // and the top of the body is aligned with the top of the AppBar. extendBodyBehindAppBar: true, appBar: AppBar( .. .. backgroundColor: Colors.transparent, elevation: 0, shadow.. 2024. 6. 4.