본문 바로가기

# 02

[Flutter] How to use Expanded in SingleChildScrollView? Instead of using SingleChildScrollView, It's easier to use CustomScrollView with a SliverFillRemaining. Try this: CustomScrollView( slivers: [ SliverFillRemaining( hasScrollBody: false, child: Column( children: [ const Text('Header'), Expanded(child: Container(color: Colors.red)), const Text('Footer'), ], ), ), ], ) 출처 - https://stackoverflow.com/questions/56326005/how-to-use-expanded-in-singlec..
[Flutter] scroll physics no bounce no scroll physics: const ClampingScrollPhysics( parent: NeverScrollableScrollPhysics(), ),
[Flutter] in app messaging Firebase in_app_messaging (베타) 특정 사용자를 위한 맞춤형 메시지를 보내거나 사용자 행동을 기반으로 메시지를 트리거 할 수 있다. 사용자의 관심사와 브랜드 특성에 맞춰 메시지 디자인이 가능하고 디자인을 앱 업데이트 하지 않고 바꿀 수 있다. 캠페인 설정 진행상황 관리가 쉽고 메시지의 레이아웃 등을 직접 설정하여 미리보기를 통해 확인 할 수 있다. 어느 메시지가 의도한 반응을 가장 효과적으로 이끌어 내는지 알 수 있고 반복되는 캠페인 설정이나 단발성 알림 전송 모두 가능하다. 예시로 새로운 이벤트 소식이나 앱 중요 업데이트 사항 등을 전달 할 수 있다. 사용 방법 sdk 만 추가하면 된다. (단 이벤트 트리거 시 추가 개발 필요) 빈도 제한 - 기기당 1번 또는 n일 에 1번 이하로..
[Android] 구글 플레이 콘솔 앱 업데이트 시 메일 받기! iOS 는 앱 출시하거나 테스트 플라이트에 올리면 디폴트로 이메일이 전송되는데 안드로이는 따로 설정해줘야 한다고! 구글 플레이 콘솔 - 설정 - 알림 앱 업데이트 이메일 체크 해주면 됨!
[etc] opacity 16진법! 100% — FF 95% — F2 90% — E6 85% — D9 80% — CC 75% — BF 70% — B3 65% — A6 60% — 99 55% — 8C 50% — 80 45% — 73 40% — 66 35% — 59 30% — 4D 25% — 40 20% — 33 15% — 26 10% — 1A 5% — 0D 0% — 00
[Flutter] RichText RichText( text: TextSpan( text: '개인정보를 제공 받는 자: ', style: TextStyle( color: Color(0XFF666666), fontSize: 12, fontWeight: FontWeight.normal, height: 1.2, ), children: [ TextSpan( text: '(주)조이월드\n', style: TextStyle( color: Colors.black, fontSize: 12, fontWeight: FontWeight.w500, ), ), TextSpan( text: '개인정보 이용 목적: ', ), TextSpan( text: '보너스 이벤트 참여 확인 및 중복\n경품 제공 방지, 이벤트 추천 및 고객 문의 응대', style: Text..
[Flutter] GetX - Simple, Reactive 방식 비교 Simple 방식 class MyController extends GetxController { final String appBar = '마이 페이지'; int counter = 0; void increment() { counter++; update(); } } Widget _buildGetBuilder() { return GetBuilder( builder: (_) { print('-----------------_buildGetBuilder() builder'); return Text( '${_.counter}', style: textStyleWhiteBold(50), ); } ); } Widget _buildSimpleButton() { return InkWell( onTap: () { control..
[Flutter] 라이브러리 정리! Dart packages 필수 패키지 get - 상태관리 패키지. Most Likes 1위. (대체, provider, flutter_bloc) shared_preferences - 디바이스에 단순 데이터 저장. Most Likes 3위. (비슷, sqflite(SQLite), hive(nosql)) http - api 연동 패키지. Most Likes 4위. (대체, dio) url_launcher - 기본 브라우저 url 열기, 기본 이메일 앱에서 이메일 보내기, 기본 전화앱을 사용해 전화걸기, 기본 메시징 앱을 이용해서 sms 메시지 보내기 등 지원 Most Likes 5위. flutter_launcher_icons - 앱 아이콘 한번에 바꿔주는 패키지 Most Likes 9위. image_pick..