본문 바로가기

전체 글91

git pull 오류시 버전 초기화 git fetch --allgit reset --hard origin/main 2024. 10. 6.
플러터(Flutter) 컨펌 팝업 (취소/확인) 사용하기 컨펌 팝업 사용하기 Future deleteConfirmPopup() async { showDialog( context: context, builder: (context) => AlertDialog( title: const Text('삭제할까요?'), content: const Text('삭제 이후엔 복구할 수 없습니다.'), actions: [ TextButton( onPressed: () { // 팝업 닫기 Get.back(); }, child: Text( '취소', ), .. 2024. 6. 9.
Flutter : 안드로이드 뒤로가기 키 막기 안드로이드에서 팝업오픈 후 뒤로가기 키로 팝업이 닫히지 않도록 처리할 필요가 생겨서 사용함.PopScope( canPop: false, .. ..), 2024. 6. 8.
강제 push 다양한 이유로 충돌깃에 push  후 로컬 uncommit 하고 다시 푸시하면 오류 git push -f origin main 2024. 6. 8.
git 원격 저장소 repository 변경 git remote set-url origin {새로운GITURL} ex)git remote set-url origin https://github.com/testB/your.git 확인 하기git config --list 2024. 6. 8.
특정 브랜치만 클론 git clone -b {branch_name} --single-branch {저장소 URL} 2024. 6. 8.
.gitignore가 작동하지 않을때 git rm -r --cached .git add .git commit -m "fixed untracked files" 2024. 6. 8.
프로젝트 생성시 패키지명 설정 myproject 라는 이름으로 프로젝트 생성 flutter create -—org com.domain myproject 2024. 6. 7.
배경 반투명 효과 배경 반투명 효과   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.
프록시 통해서 전달되는 svg 파일도 gzip 압축하여 전송 설정 프록시 설정을 하면, 이를 통해서 전송되는 컨텐츠는 content-type 이 "application/octet-stream" 로 전송됨으로 인해 svg 파일이 압축되지 않고 전달된다. 이를 처리하기 위해서는 아래와 같이 설정한다. 1. /etc/nginx/nginx.conf 에 설정 추가http { ## # Basic Settings ## . . . ## # Gzip Settings ## gzip on; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/j.. 2024. 6. 6.
nginx 파일 업로드 최대 용량 제한 nginx 파일 업로드 최대 용량 제한 /etc/nginx/sites-available/default 파일 수정 server { . . . # 파일 업로드 최대 용량 제한 client_max_body_size 5m; . . . } 2024. 6. 6.