본문 바로가기

반응형

전체 글

(6)
[Flutter] error - PlatformException (PlatformException(sign_in_canceled, com.google.android.gms.common.api.ApiException: 12501: , null)) 오늘의 에러: PlatformException (PlatformException(sign_in_canceled, com.google.android.gms.common.api.ApiException: 12501: , null)) 이 에러는 flutter 앱을 개발하면서 firebase를 연동하여 구글 로그인을 진행할 때 대부분 개발자들은 만난 적이 있을 것이다.(나도 그랬다...) 오랜만에 google login 연결하다가 다시 에러 발생해서 글로 기록해본다. 이 에러는 밑에 있는 구글 로그인 함수를 호출한 뒤, Future signInWithGoogle() async { // Trigger the authentication flow try { final GoogleSignInAccount? googleU..
[flutter] figma 디자인 그대로 위젯 배치하는 법 디자이너가 피그마로 와이어 프레임을 공유하면 프론트 엔드 개발자는 이거를 토대로 픽셀 단위로 정교하게 개발한다. 까라면 까야지... 이 글을 통해 스타트업과 여러 프로젝트를 해온 나에게 도움이 되었던 "figma 디자인 그대로 위젯 배치하는 팁"에 대해 말해보려한다. #Tip: 걍 모든 위젯을 SizedBox로 감싸고 width와 height를 왠만하면 전부 지정해준다. 장점 1. 이러면 예외가 절대 없다. 아래에는 내가 처음 했던 프로젝트에서 와이어 프레임을 받고 작성했던 코드다. class ScreenExampleScreen extends StatelessWidget { static const routeName = '/screen-example'; const ScreenExampleScreen({su..
[flutter] GridView.builder 위젯의 기본 padding 없애는 법 MediaQuery.removePadding( context: context, removeBottom: true, removeTop: true, child: GridView.builder( itemCount: 6, gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( crossAxisCount: 2, childAspectRatio: 1, mainAxisSpacing: 13, crossAxisSpacing: 16), itemBuilder: (context, index) => SizedBox( width: 139, height: 139, child: Container( color: Color(0xffd9d9d9), ), ), ), ), MediaQuery.re..
[flutter] AppBar 크기 조정하는 법 PreferredSize( preferredSize: Size.fromHeight(30), child: AppBar(), ), PreferredSize로 감싸자
[Flutter] error - Looking up a deactivated widget's ancestor is unsafe. 오늘의 에러: E/flutter (19092): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe. E/flutter (19092): At this point the state of the widget's element tree is no longer stable. E/flutter (19092): To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling dependOnInheritedWidgetOfExactT..
Hello World 반갑다 세상아

반응형