본문 바로가기
728x90

전체 글565

flutter compileSdkVersion 33 안되는 문제 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1223 Build failed on Android Target SDK 33 · Issue #1223 · pichillilorenzo/flutter_inappwebview [v] I have read the Get Started - Installation section [v] I have read and done the Get Started - Setup Android section [v] I have read and done the Get Started - Setup iOS section [v] I have alrea... github.com 해당 이슈에 대해서 다른 프로젝트로하니까 되어서 .. 2022. 9. 9.
flutter, dart list 합치기 expand [[1,2,3], [4,5,6], [7,8,9]] 를 [1,2,3,4,5,6,7,8,9] 로 바꾸어 줌. https://sunnybong.tistory.com/256 [다트] 리스트 합치기 리스트를 합치는 일. 과연 많이쓸까? 그냥 코드 문법만 공부하면, 익숙해지기 어렵지만 플러터에서는 꼭 필요한 기능이다ㅋ 예를 들어... 다른 함수에서 받아온 두개의 위젯 리스트를 하나의 컬 sunnybong.tistory.com void main() { var list1 = [1,2,3,4]; var list2 = [5,6,7,8]; var list3 = [9,10,11,12]; // #1 addAll var newlist1 = List.from(list1)..addAll(list2); print(newlist1); .. 2022. 9. 8.
In flutter, Making 2 page with 1 GetXController If you make the App like instagram. sometimes you would like to 2 page with 1 GetXController. For example, A profilePage -> follower List page -> B profilePage in this time A profilePage and B profilePage are made in same page (Profile page) and same controller . the solution is here. https://stackoverflow.com/questions/69018689/flutter-getx-how-navigate-to-different-views-with-same-controller-c.. 2022. 9. 6.
Flutter에서 지네릭 메서드 만들기 Future matjipLike( {required MatjipModel matjipModel, required UserModel userModel, required T model, required bool like //true -> like, false unlike }) async { 지네릭을 메서드를 이해하고 사용은 해왔지만, 실제로 지네릭 메서드를 만들어서 사용해 본 적은 없었다. 그런데 코딩을 할수록, 함수의 재사용성을 고려해볼 때 지네릭을 사용해서 메서드를 만들면 훨씬 재사용성이 늘 것 같은 생각에, 만들어보기로 했다. 코드가 훨씬 줄어들 것이라고 예상하고 있다 https://stackoverflow.com/questions/42004475/how-to-create-a-generic-method.. 2022. 9. 2.
728x90