728x90

Flutter 12

[Flutter] IconButton padding 없애는 방법

문제 icon button에 padding이 너무 과도하게 들어가있어 버튼과 버튼사이에 간격이 생긴다 해결방안 처음엔 다른 위젯처럼 padding에 EdgInsets.zero를 주어보았다 하지만 다른 변화 없이 그대로인걸 확인해서 찾은 방법! IconButton에 아래 코드를 추가하는것이다! constraints: BoxConstraints(), // constraints IconButton( constraints: BoxConstraints(), // constraints onPressed: () { }, icon: Image.asset( iconGrayCheck width: 15, ))

FRAMEWORK/FLUTTER 2022.04.18

Flutter 문자열에서 html tag모두 제거하기

flutter에서 html을 쓰자니 너무 엉성해서 html tag를 모두 빼고 widget으로 그리고싶어서 찾아보았다! import 'package:html/parser.dart'; String parseHtmlString(String htmlString) { try{ final document = parse(htmlString); final String parsedString = parse(document.body!.text).documentElement!.text; return parsedString; }catch(e){ return htmlString; } } 이렇게하면 문자열에서 html 태그를 모두 제거하고 문자열만 출력해서 사용할 수있다!

FRAMEWORK/FLUTTER 2022.04.14

flutter apple login android & ios 모두 완료

플루터하면 항상 소셜로그인이 들어가는데, 많은 소셜로그인이 있지만 제일 힘든건 애플... 애플은 ios랑 android를 따로 해주어야되는데, 애플이 자기꺼라고 ios만 편애하는거같다 https://pub.dev/packages/sign_in_with_apple sign_in_with_apple | Flutter Package Flutter bridge to initiate Sign in with Apple (on iOS, macOS, and Android). Includes support for keychain entries as well as signing in with an Apple ID. pub.dev 공식 사이트에 설명이 잘 되어있지만, 모두 ios기준이다 ios는 하라는대로하면 문제없이 잘 ..

FRAMEWORK/FLUTTER 2022.01.06

Flutter 사파리 왼쪽에서 오른쪽으로 스와이프 뒤로가기 트랜지션 오류 수정은 이렇게!

플루터 웹 하던중 사파리에서 왼쪽에서 오른쪽으로 스와이프해서 뒤로가기에서 오류가 발생했다. 이상한 위치로 가는... 뒤로가기 하면 오류나는... 진자 이상한.. 뭔지 모르겠는 오류 아이폰 쓰는 사람은 다 아는 뒤로가기지만 어떻게 수정해야될지 감도 안잡히는거! 🖐 잠깐! 참고사이트 ↓↓↓↓ https://stackoverflow.com/questions/49894406/how-to-implement-swipe-to-previous-page-in-flutter How to implement swipe to previous page in Flutter? Go back feature works only on the edge of the screen on iPhone. How can I swipe to previ..

FRAMEWORK/FLUTTER 2022.01.03

[Flutter] web cors 오류 해결

안녕하세요 저번글에 이어 이번에도 flutter web관련 오류 해결방법에 대해 적으려고해요! cors... cors는 vue할때도 괴롭히더니 flutter에서도 그러네요.. 네트워크 통신부분이 직접적으로 없어서 어떻게 해결해야되나.. 싶었는데 생각보다 너무 간단하게 해결이 되서 기분이 좋아요!! 1- Go to flutter\bin\cache and remove a file named: flutter_tools.stamp 2- Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart. 3- Find '--disable-extensions' 4- Add '--disable-web-security' 찾은 stackoverf..

FRAMEWORK/FLUTTER 2021.11.25
728x90