전체 글

Flutter/GoRouter

[Flutter] go_router - 1 : 프로젝트 적용

* 해당 글은 go_router 13.0.1 버전으로 설명되어 있습니다. * 버전이 업데이트되면서 바뀌는 사항은 하단에 업데이트되어 있습니다. https://pub.dev/packages/go_router go_router | Flutter Package A declarative router for Flutter based on Navigation 2 supporting deep linking, data-driven routes and more pub.dev flutter에서 라우팅 관리로 자주 쓰이는 패키지인 go_router를 적용해 보도록 하겠습니다. 1. 패키지 등록 pubspec.yaml 파일에 go_router 패키지를 등록시켜 줍니다. 2. router 파일 생성 router들을 관리하기 위..

Flutter/Dart

[Dart] DateUtils Class 정리 (날짜 작업을 위한)

flutter dart의 날짜 처리 작업을 위해 제공하는 DateUtils Class를 알아보겠습니다. https://api.flutter.dev/flutter/material/DateUtils-class.html DateUtils class - material library - Dart API Utility functions for working with dates. Constructors DateUtils() Properties hashCode → int The hash code for this object. read-onlyinherited runtimeType → Type A representation of the runtime type of the object. read-onlyinherited..

Flutter/기본

[Flutter] TextScale fix (텍스트 크기 고정)

앱에서 이런 디자인을 작업했다고 가정하면 다른 사용자들도 사진과 같은 모습으로 보여야 합니다. 하지만 사용자 디바이스 텍스트 사이즈에 따라서 전혀 다른 디자인으로 변할 수 있습니다. ex) 텍스트 크기 - 보통 텍스트 크기 - 작게 텍스트 크기 - 크게 이런 식으로 사용자의 디바이스 설정 텍스트 크기에 따라 텍스트 크기가 달라져서 개발한 디자인이 제대로 보이지 않을 가능성이 큽니다. 이것을 다 대응하면서 디자인을 짜는 것은 매우 많은 작업이 추가되므로 일반적으로는 앱에서 텍스트 크기를 디바이스에 따르지 않고 앱에서 따로 지정하여 해당 크기로만 보이게 작업을 합니다. textScaleFactor - deprecate MediaQuery( data: MediaQuery.of(context).copyWith(..

Flutter/기본

[Flutter] Clipboard 사용해서 복사 / 가져오기

위와 같은 작업을 할 때 Flutter에서 기본으로 제공되는 Clipboard를 이용해서 할 수 있습니다. https://api.flutter.dev/flutter/services/Clipboard-class.html Clipboard class - services library - Dart API Utility methods for interacting with the system's clipboard. Constructors Clipboard() Properties hashCode → int The hash code for this object. read-onlyinherited runtimeType → Type A representation of the runtime type of the objec..

주톨
Jutole's programming