반응형

전체 글 38

Flutter 위젯] #29 SizedBox

1) Widget의 크기 지정하기 SizedBox( width: 200.0, height: 100.0, child: FlatButton( color: Colors.blue, child: Text('Button'), onPressed: () {}, ), ), SizedBox( width: double.infinity, height: 100.0, child: FlatButton( color: Colors.blue, child: Text('Button'), onPressed: () {}, ), ), 2) Widget 간격 설정 주로 Column 사용하면서 위젯간 간격 조절하는데 사용한다. Padding이나 다른걸로 해도 되지만, SizedBox로 하면 heigth만 입력해 주면 되기 때문에 간단하다. Colu..

Flutter 앱에 Firebase 추가

1. Firebase Project를 만들어 줍니다. Firebase Firebase는 고품질 앱을 빠르게 개발하고 비즈니스를 성장시키는 데 도움이 되는 Google의 모바일 플랫폼입니다. firebase.google.com 2-1. Firebase에 Android 앱 등록 1) 앱 등록 (Android Pacakage Name 등록) /android/app/build.gradle 파일에서 아래 보이는 [PACKAGE_NAME] 부분이 패키지 이름입니다. android { defaultConfig { applicationId "[PACKAGE_NAME]" } } /android/app/src/main/AndroidManifest.xml 파일에서도 확인 가능합니다. ※ 앱 닉네임은 한글 입력 가능 2) g..

반응형