본문 바로가기
반응형

Flutter55

flutter 공부 : shrinkWrap 속성 shrinkWrap 에 대해 알아봅시다. 해당 속성을 true로 변경하게 되면, 필요한 공간만 차지하도록 동작을 변경할 수 있습니다 (항목이 넘어간다면 당연히 스크롤 됩니다) 아래의 코드 가 있습니다. 중간에 이번에 사용할 shrinkWrap 가 true 되어있습니다. 이렇게 하면 원래 ListView 가 전체의 크기를 가지려 했지만, shrinkWrap 때문에 해당 text 위젯들이 있는 구간만으로 작아지게 됩니다. 끝. 2023. 12. 23.
flutter / ERROR ) Unable to boot device because it cannot be located on disk (갱신) 모처럼 xcode를 업데이트 끝내고 시뮬레이터를 실행하였더니 아래와 같은 에러 코드가 발생.. ERROR ) Unable to boot device because it cannot be located on disk 뭐지? 왜 안되는거지 검색을 시작 아래의 해결책을 찾았습니다. 해결방법 실행중인 xcode/시뮬레이터 를 모두 종료후 터미널에서 아래의 명령어 입력 xcrun simctl erase all 그리고 다시 실행하면 끝 (갱신... 23.12.25) 위 명령어를 실행했는데.. 뭔가 에러가 발생 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Develo.. 2023. 12. 16.
GoogleFonts as default fonts in flutter app 제목 처럼 GoogleFonts as default fonts in flutter app 을 적용하는 방법입니다. 공부하다가 기록으로 남겨봅니다. 먼저 pubspec.yaml에 google_fonts를 추가합니다. https://pub.dev/packages/google_fonts google_fonts | Flutter Package A Flutter package to use fonts from fonts.google.com. Supports HTTP fetching, caching, and asset bundling. pub.dev 그리고, 아래의 MaterialApp ThemeData에 Google Theme를 적용합니다. font는 원하시는것으로 변경하시면 됩니다. MaterialApp( the.. 2023. 11. 19.
flutter error message(Flutter/Release.xcconfig) 도입 flutter에서 cocoapods 를 업데이트 하는 경우 아래와 같이 에러나는 경우가 발생합니다. 해결 방법은 메시지 마지막 줄에 있는 Flutter/Release.xcconfig 를 수정하면 됩니다. 에러메시지 [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pod.. 2023. 9. 26.
Flutter 화폐단위 넣고 천단위 적용해보자. * 안내말 입니다. -------------- * 개인적으로 남기는 글입니다. 아래의 경우를 미리 공지합니다. 1. 높임말은 없는 경우가 있습니다. 2. 영어, 일본어, 베트남어를 공부하고 있습니다. 경우에 따라서 사용됩니다. 3. 보기 거북하다면 뒤로가기 해주세요. ------------- 시작! Flutter에서 천단위마다 콤마 넣는 방법을 알아보겠습니다. 우선 사전준비로 pubdev 에서 package를 추가 해야합니다. https://pub.dev/packages/intl 화폐 단위 표기 NumberFormat.currency를 이용하여 가격 화폐 단위를 간단하게 표기할 수도 있어요. 끝. 2023. 6. 17.
[Flutter] Error: Dart library 'dart:ui' is not available on this platform * 안내말 입니다. -------------- * 개인적으로 남기는 글입니다. 아래의 경우를 미리 공지합니다. 1. 높임말은 없는 경우가 있습니다. 2. 영어, 일본어, 베트남어를 공부하고 있습니다. 경우에 따라서 사용됩니다. 3. 보기 거북하다면 뒤로가기 해주세요. ------------- 시작! vscode에서 요즘 아래와 같은 에러가 발생해서 귀찮아진다. ../../../flutter/packages/flutter/lib/src/material/bottom_app_bar_theme.dart:5:8: Error: Dart library 'dart:ui' is not available on this platform. import 'dart:ui' show lerpDouble; constants를 이용해.. 2023. 5. 6.
반응형