all 126

[Flutter] 페이지뷰 PageView

PageView ( )위젯 children : 보여줄 페이지 위젯들을 넣고, controller : 페이지 뷰를 컨트롤 한다. // 3초 마다 실행 됨 Timer.periodic(Duration(seconds: 3), (timer) { print('실행!'); // 현재 페이지 int? nextPage = pageController.page?.toInt(); if (nextPage != null) { if (nextPage > 3) { nextPage = 0; } else { nextPage++; } pageController.animateToPage(nextPage, duration: Duration(seconds: 1), curve: Curves.ease); } }); body: PageView( c..

dev/flutter 2024.01.07

[Flutter] 라이브러리 Library추가

현재 window android환경이기 때문에 android만 추가함 NLog라이브러리를 추가할 예정 프로젝트의 build.gradle - flatDir를 사용하고 aar라이브러리를 추가하여 사용 allprojects { repositories { google() mavenCentral() flatDir(dirs: 'libs') maven {url 'https://jitpack.io'} } } 앱의 build.gradle dependencies { // implementation files("libs/nlog-release.aar") implementation("com.github.b3lon9:NLog:1.1.1") }

dev/flutter 2024.01.03

[Flutter] Firebase Cloud Firestore

https://firebase.google.com/docs/firestore/manage-data/add-data?hl=ko Cloud Firestore에 데이터 추가 | Firebase Firebase 데모 데이가 시작되었습니다. Google 최고의 기술을 활용하여 AI 기반 풀 스택 앱을 빌드하고 성장시키는 방법에 관한 데모를 시청하세요. 의견 보내기 Cloud Firestore에 데이터 추가 컬렉션을 firebase.google.com 데이터 읽기(옵저빙) - FirebaseFirestore.instance.collection('todo').snapshots() : collection에 들어가는 단어가 데이터베이스의 '테이블'이다 StreamBuilder( stream: FirebaseFiresto..

카테고리 없음 2024.01.02

[Flutter] Firebase 연결

FIrebase Cloud Storage를 사용하기 위함이고, 그냥 cloud_firestore패키지를 사용하게 되면 initalizeApp를 요청하게 된다. 아래의 명령어를 실행해서 flutterfire명령을 실행할 수 있도록 환경을 구성 dart pub global activate flutterfire_cli activate를 하게 되면 Pub\Cache\bin 경로에 flutterfire.bat파일 생성된다. bin파일을 환경 변수에 등록을 해준다. CLI 연결하느라 오늘 하루를 다썼다. 환경은 window이며, exe파일을 실행해서 firebase login을 한다. 환경 변수 설정은 다음과 같이 하였다. firebase커맨드 창에서 로그인이 마무리되면, 스튜디오 터미널에서 아래의 명령어를 실행한..

dev/flutter 2024.01.02

[Flutter] 기존 프로젝트에 플랫폼(Platform) 추가(add)하기

전체 추가 명령 - 아무 플랫폼도 없거나 해당 플랫폼 빌드가 안되면 플러터에서 알려줄 것이다. flutter create . 개별 추가 명령 - android, ios, web, macos, window flutter create --platforms -android . example폴더를 만들면서 필요하게 되었다. 참고, 2023.12.21 - [dev/flutter] - [Flutter] Package 배포 [Flutter] Package 배포 Android Studio환경 File - New - New Flutter Project Project type : package : (Android, iOS코드가 들어간 경우 Plugin) lib내부에 본인이 배포할 코드를 작성 pubspec.yaml 설정 ..

dev/flutter 2023.12.29

[Django] 개발 환경 구축

파이썬 다운로드 : www.python.org 장고 다운로드 pip install django 프로젝트 폴더 생성 후 해당 폴더 안에서 장고 프로젝트 생성 - config는 다른 프로젝트 명으로 대체 가능 django-admin startproject config . 서버 구동 주소 : http://127.0.0.1:8000/ 주소 : http://localhost:8000/ python manage.py runserver 한국어 버전으로 바꾸기 경로 : config/settings.py LANGUAGE_CODE = 'ko-kr'# en-us TIME_ZONE = 'Asia/Seoul'# UTC

dev/web 2023.12.28
728x90
반응형