1. pubspec.yaml 을 연다.

2. dart의 print 관련 라이브러리인 sprintf 를 사용하고자 한다.

https://developermemos.com/posts/using-sprintf-flutter-dart 

 

Using sprintf in Flutter/Dart - DeveloperMemos

If you’re reading this post you are probably looking for something similar to printf or String.format in Dart. Unfortunately the same functionality isn’t supported in Flutter/Dart out of the box. There is a third party package though. Before I talk about t

developermemos.com

dependencies:
  flutter:
    sdk: flutter
  sprintf: ^4.0.2

위와 같이 디펜던시 영역에 추가 후,,

 

3. 플루터 프로젝트 workspace로 이동

$> flutter pub get 

 

+ Recent posts