일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- viewmodel
- 안드로이드
- 계측
- DART
- scroll
- Kotlin
- activity
- 앱바
- intent
- binding
- appbar
- Flutter
- livedata
- 앱
- Navigation
- CustomScrollView
- ScrollView
- Compose
- Dialog
- drift
- 테스트
- Button
- data
- LifeCycle
- tabbar
- TEST
- android
- textview
- textfield
- Coroutines
- Today
- Total
목록Flutter (85)
Study Record

✍ 커서와 텍스트 핸들러 Flutter 에서 커서와 텍스트 핸들러의 색상을 바꾸려면 ThemeData 의 textSelectionTheme 값을 변경하면 된다. 각각 cursorColor 는 커서 색상, selectionColor 는 텍스트를 드래그했을 때 드래그한 영역의 색상을 뜻한다. selectionHandleColor 는 텍스트 색상을 변경할 수 있다. runApp( MaterialApp( theme: ThemeData( textSelectionTheme: TextSelectionThemeData( selectionHandleColor: Colors.deepOrangeAccent, selectionColor: Colors.greenAccent.withOpacity(0.3), cursorColor:..

✍ showModalBottomSheet 바텀 시트를 띄울 수 있게 해주는 함수이다. Future showModalBottomSheet({ required BuildContext context, required WidgetBuilder builder, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, Color? barrierColor, bool isScrollControlled = false, bool useRootNavigator = false, bool isDismissible = true, bool enableDrag = true, RouteSett..

✍ Wrap Widget 하위 항목을 여러 수평 또는 수직으로 표시하는 위젯입니다. Row, Column 위젯의 하위 항목들의 개수가 많아 너비를 초과하는 경우 오류가 나온다. Wrap 는 하위 항목들이 너비를 초과하면 설정한 방향(수평 또는 수직)으로 다음 줄로 위젯을 자동으로 배치해준다. Wrap({ Key? key, Axis direction = Axis.horizontal, WrapAlignment alignment = WrapAlignment.start, double spacing = 0.0, WrapAlignment runAlignment = WrapAlignment.start, double runSpacing = 0.0, WrapCrossAlignment crossAxisAlignment =..

🎁 IntrinsicHeight Widget 무제한의 높이를 사용할 수 있고 자식 위젯이 무한 확장을 시도하여 보다 합리적인 높이로 크기를 조정하려는 경우에 유용하다. 비용이 많이 드는 위젯이므로 꼭 사용해야 할 때만 사용하는 게 좋다. 예를 들어, import 'package:flutter/material.dart'; void main() => runApp(MaterialApp(home: HomeScreen_Intrinsic())); class HomeScreen_Intrinsic extends StatelessWidget { const HomeScreen_Intrinsic({Key? key}) : super(key: key); @override Widget build(BuildContext conte..

✍ version solving failed error 다음과 같은 오류는 같은 라이브러리를 여러 곳에서 참조할 경우 버전이 서로 달라 생기는 문제이다. 이 문제는 dependency_overrides 키워드에 겹치는 라이브러리의 버전을 정해주면 모두 그 버전을 참조하는 것으로 해결할 수 있다. 예시에서는 path 라이브러리가 문제였기 때문에 path 만 추가한 것이다.
라이브러리 링크 - 캘린더(table_calendar) https://pub.dev/packages/table_calendar table_calendar | Flutter Package Highly customizable, feature-packed calendar widget for Flutter. pub.dev - 다국어화 (Intl) https://pub.dev/packages/intl/install intl | Dart Package Contains code to deal with internationalized/localized messages, date and number formatting and parsing, bi-directional text, and other international..
https://pub.dev/packages/permission_handler permission_handler | Flutter Package Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. pub.dev

✍ StreamBuilder Widget FutureBuilder 와 비슷하게 stream 과 상호작용하며 값을 리턴 받을 때마다 다른 위젯들을 보여줘야 할 때 유용한 위젯이다. StreamBuilder({ Key? key, T? initialData, Stream? stream, required Widget Function(BuildContext, AsyncSnapshot ) builder, }) stream 인자에 stream 을 설정하면 값(데이터 타입: T)을 리턴 받을 때마다 builder 함수가 호출되면서 AsyncSnapshot 에 리턴 받은 값, 상태를 보고 판단하여 상황에 맞게 위젯들을 보여줄 수 있다. initialData가 null 이 아니면 초기 데이터 값이 null 이 아닌 ini..