전체 글 96

[Flutter] Navigator.of(context) .push / .then 화면 전환 보낸 화면에서 데이터 받기

데이터를 받으려면 어떻게 할 수 있을까 두가지 방법이 있다. 1. 넘어 온 값을 받아 setState()로 처리 onPressed: () async { final value = await Navigator.push( context, CupertinoPageRoute(builder: (context) => NewPage())); setState(() { debugPrint(' value ::::::::::: $value'); // 콜백 함수 처리 }); }, 2. then 으로 콜백 함수 처리 Navigator.push( context, CupertinoPageRoute(builder: (context) => NewView()), ).then((value) { if (value == 'update') { ..

develop/Flutter 2022.10.19

[Flutter] Font 적용하기

늦을 수록 힘든 작업은 다국어 작업, font 작업, color 공통화 등이 있는거 같다. 늦을 수록 고쳐야 하는 것들이 마른 미역 한봉지 물에 넣은 것 만큼 늘어 난다.... Flutter 프로젝트에 원하는 폰트 적용하기 요약 1. 사용할 폰트를 프로젝트 내로 위치 시킨다. 2. .yaml 파일에 폰트를 정의한다. 3. 폰트를 사용한다. 우선 사용할 폰트를 다운 받고 프로젝트 내에 위치 시킨다. assets > font 폴더를 만들고 (option : 원하는 폴더를 만들어도 된다. ) fonts: 부분의 주석을 해제한다. .yaml 파일은 띄어쓰기에 민감하기 때문에 주석 해제후 사용하면 띄어쓰기에 신경 쓰지 않아서 좋다. 상대 경로를 복사하여 pubspec.yaml 의 family 이하 부분을 아래 처..

카테고리 없음 2022.10.18

[Flutter] dart List선언하기 하기 (dart 기초 2-1)

1. 선언 - 크기 고정 [ Like array ] _ fixed length list var newList = new List(10);// list의 크기 == 10 var newListFive = List.filled(5, 0);// 0으로 초기화된 list의 크기 == 5 고정된 크기의 list 이므로, add, removeAt 이 불가능하다. - 가변 리스트 _ growable list var list1 = ['가', '나', '다'];// 값과 함께 리스트를 선언 및 초기화 var list2 = new List(); // 길이가 0인 리스트 선언 및 초기화 var list3 = new List.empty(growable: true); // 인자로 전달 var list4 = List.filled(..

develop/Flutter 2022.10.17

[배포] 앱 배포에 도움이 되는 사이트 모음

앱을 배포하려면 다양한 것들이 필요한데, 그 중에는 스크린샷, 개인정보 처리 방침 등이 있다. 개인정보 처리 방침 앱 배포시 많이 사용하는 사이트이다. https://app-privacy-policy-generator.firebaseapp.com App Privacy Policy Generator Terms & Conditions By downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You’re not allowed to copy or modify the app, any p..

develop/배포 2022.10.15

[UI] 참고 자료, 사이트

ui 개발시 필요한 사이트가 많아 따로 정리한다. 카테고리 별로 도움이 되는 사이트를 계속 업데이트 하려한다. 색상 iOS 개발 시 UIcolor 변환 - https://www.ralfebert.com/ios/swift-uikit-uicolor-picker/ Swift UIColor Picker www.ralfebert.com 색조합 플러그인이 있어 편리 https://coolors.co/ Coolors - The super fast color palettes generator! Generate or browse beautiful color combinations for your designs. coolors.co 자연스러운 색조합 [자연색] https://www.design-seeds.com Desig..

기타 2022.10.14

[Flutter] dart 출력 하기, 변수/상수 선언 하기 (dart 기초 1)

DART 시작하기 Dart는, dart는 flutter를 하기 위해 꼭 배워야 하는 언어이다. 안드로이드 스튜디오, IntelliJ IDEA, VS Code에서 dart를 지원한다. 공식 사이트는 아래와 같다. https://dart.dev Dart programming language Dart is a client-optimized language for fast apps on any platform dart.dev 또한 공식 사이트에서 아래와 같이 효과적인 프로그래밍에 대한 가이드라인을 정의 해두었으니, 참고 할 수 있다. https://dart.dev/guides/language/effective-dart Effective Dart Best practices for building consisten..

develop/Flutter 2022.10.13