dev(71)
-
[Flutter] TextField
글자 첫 시작 간격을 조절하는 방법decoration에서 'contentPadding'을 조절한다. 좌측 상단에 label표시 되는 것을 floatingLabelBehavior라고 한다.계속해서 표시되는 것을 원하는 경우 TextField( decoration: InputDecoration( labelText: "label text", hintText: "hint text", helperText: "helper text", floatingLabelBehavior: FloatingLabelBehavior.always, border: OutlineInputBorder(), ), ) LineBreak 줄바꿈이 자동으로 일어나도록 하고 싶은 경우maxL..
2024.02.21 -
[Flutter] Geolocator #location
addflutter pub add geolocator importimport 'package:geolocator/geolocator.dart'; permission setting - android Make sure at least ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION are defined in the manifest. permission setting - iOSNSLocationWhenInUseUsageDescriptionNSLocationAlwaysUsageDescriptionNSLocationUsageDescription (mac os) permission checkLocationPermission permission = await Ge..
2024.02.21 -
[Flutter] CustomPainter
CustomPaint는 그림을 그리는 위젯이다. 마치 Container나 SizedBox를 쓰듯이 말이다. 그 CustomPaint위젯 안에 그림을 그려주는 것이 Painter이다. Painter는 CustomPainter클래스를 재정의하여 사용한다. CustomPaint안에서 그림을 그려지는 순서는 painter → child → foregroundPainter 순으로 그려진다. child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ CustomPaint( painter: BlueBoxPainter(), child: Container( width: 50, height: 50, color: Colors.o..
2024.02.14 -
[AOS] Kakao Login
카카오 공식 문서에서 적혀진 많은 양의 정보에 주눅들지 않길, 필자가 설명하는 방법대로 차근차근 따라오면 카카오가 얼마나 편하고 친절하게 API를 만들었는지 알 수 있음. 처음엔 문서가 눈에 안들어와도 이해하고 나면 문서가 눈에 보이고, 오히려 "이런 기능은 없을까?" 하면서 찾게 될 것. [시작] 카카오 개발자 공식 사이트 접속 : https://developers.kakao.com/ 상단의 '내 애플리케이션' 클릭 '애플리케이션 추가하기' 클릭 '앱 이름', '사업자명', '카테고리' 작성(아이콘은 나중에 필요할 경우 적용) 그리고 '저장' 클릭 그럼, '앱 설정 - 요약 정보' 란에 네이티브 앱 키 위치를 기억할 것 '앱 설정 - 플랫폼'에서 'Android 플랫폼 등록' 클릭 앱의 패키지명과 마켓..
2024.02.13 -
[Flutter] landscape, portrait #fullscreen #system
MediaQuery.of(context).orientation == Orientation.portrait ? // 하단 네비게이션 바를 숨김 bottomNavigationBar: null, // 키보드가 나타날 때 화면이 조정되지 않도록 함 resizeToAvoidBottomInset: false, ), // 앱의 상태 표시줄을 숨김 debugShowCheckedModeBanner: false, theme: ThemeData( // 상태 표시줄의 색상을 투명으로 설정 appBarTheme: AppBarTheme( color: Colors.transparent, ..
2024.02.11