본문 바로가기

⌨️flutter29

Roman Ismagilov 공부회. flutter tap effect native인척하기. 자연스러운 버튼! https://medium.com/@pomis172/making-flutter-apps-look-more-native-part-1-tap-effects-48a59cb158bf Making Flutter apps look more native. Part 1: tap effectsBy default, if you are using InkWells to handle tap events in your UI, a ripple effect will be applied. The issue here is that while the…medium.comInkWells쓰면 리플효과가 있다. 리플 효과는 안드로이드 디자인에서는 필수적인 요소이지만, iOS에서는 다소 어색하게 보일 수 있다는 점이다.대신 ios는 버튼을 탭할 .. 2025. 3. 10.
Flutter baseline 텍스트도 위젯이다. 기본으로 좌상단에 위치한다. 베이스라인 위젯Baseline classA widget that positions its child according to the child's baseline.This widget shifts the child down such that the child's baseline (or the bottom of the child, if the child has no baseline) is baseline logical pixels below the top of this box, then sizes this box to contain the child. If baseline is less than the distance from the top of the chi.. 2025. 3. 9.
flutter apk 추출시 resource android:attr/lStar not found 에러. android/ 하위의 세팅들을 이것저것 바꾸다가 gradle, java설치까지 하고 도저히 버전이슈가 없다고 판단되었다. 그치만안됐다. https://github.com/livekit/client-sdk-flutter/issues/569#issuecomment-2275686786 A failure occurred while executing com.android.bui..." data-og-host="github.com" data-og-source-url="https://github.com/livekit/client-sdk-flutter/issues/569#issuecomment-2275686786" data-og-url="https://github.com/livekit/client-sdk-flutte.. 2024. 12. 9.
플러터 onpressed vs onTap 차이 버튼을 컨테이너로 바꿨더니 함수호출이 안되는현상을 발견. 전자는 savelog함수가 실행되는데 후자는 실행이 안된다.logWriteViewModel.savelog 라고 쓴것에서 문제가 있다. 대신 logWriteViewModel.savelog() 사용전자는 Button위젯을 썼어서 onPressed parameter가 있다. 이는기본적으로 함수참조를 기대한다.후자는 onTap을 이용했는데 savelog뒤에 ()를 해줘서 함수임을 말해주지않으면 기본적으로는 값반환만 이뤄진다. 2024. 11. 27.
flutter OOP(객체지향 프로그래밍) 어느순간부터 내가 짠 코드들이 뭔가 뒤죽박죽이라는게 느껴졌다. 레거시 코드? 라고 한단다,! 회사프로젝트를 혼자서 개발하면서 방대한 코드들을 관리할 체계를 잡을 필요를 느꼈다.UI와 데이터는 분리하는데 도메인 영역이 제대로 기준이 안잡혀있었다. 그러다가 mvvm 아키텍처를 적용하고 그에따라 명명법과 폴더구조 기준을 잡긴했다. 진짜작은프로젝트면 상관없는데 규모가 커지면 반드시 짚고 넘어가야할 부분인거같다.. 내 코드를 내가 파악하지 못하게 된다. 그런데 내가 익숙해져서 그냥 쓰는 코드들이 너무 많다. 내가 쓰는 이게 뭐인지는 잘 모르고 이것의 역할만 알뿐.,, 한번 기초로 돌아가자. 괜히 수많은 무협지나 만화에서 기본에 충실하라고 하는건 아닐거다. 오늘 되짚어 볼것들은객체(Object), 클래스(Class.. 2024. 9. 5.
flutter ios 빌드 Framework 'CoreAudioTypes' not foundLinker command failed with exit code 1 (use -v to see invocation) 왜인지 새로운 프로젝트를 클론해오니 저 에러가 생겼다.디폴트세팅에서 패키지가 포함되어있음을 확인함.해당 프레임워크를 따로 직접 추가해도 해결되지 않는다 (이미 내장 경로에 존재하는데 결국 연결부분이 문제인것. 근데 왜?)https://forums.developer.apple.com/forums/thread/739216 빌드만 20번 넘게해보다가 일단 특별히 건든게 없었기에 뭔가 이상해서 xcode를 재설치 후 해결됨.근데 빌드한번하는것보다 재설치하는게 훨씬 빨랐다. 아니다 싶으면 빠른 판단 필요할듯 2024. 9. 2.