pubspec 설정 및 패키지 설치

pubspec.yaml 앱 설정 및 기본적으로 사용할 패기지를 선언하고 설치합니다.

pubspec 앱 정보

pubspec.yaml
name: jahwa_asset_management_system
description: 자화전자 자산관리 시스템.

# 다음은 앱 버전 및 빌드 번호를 정의합니다.
# 버전은 점으로 구분된 세개의 숫자입니다. (예: 1.2.43) 
# 그 다음 빌드 번호가 `+` 뒤에 표시됩니다. (옵션입니다.)
# 버전과 빌드 번호는 각각 --build-name과 --build-number를 지정하여 오버라이딩할 수 있습니다.
version: 1.0.2+2

#모바일에 표시될 앱이름
flutter_launcher_name:
  name: "JAMS"

기본적인 패키지 설치

pubspec.yaml
dependencies:
  flutter:
    sdk: flutter

  #provider
  provider: ^4.3.2+2

  #다국어 처리
  flutter_localizations:
    sdk: flutter
  
  #모바일 앱 이름 처리
  flutter_launcher_name: "^0.0.1"
  
  #앱이 종료되어도 데이터 저장 처리
  shared_preferences: ^0.5.6+2

  #Http API 통신
  http: ^0.12.0+4

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.3
  
  #json 직렬화 관련
  json_annotation: ^3.0.1

dev_dependencies:
  flutter_test:
    sdk: flutter
  
  #json 직렬화
  build_runner: ^1.10.0

  #json 직렬화
  json_serializable: ^3.4.1

dependency_overrides:
  #json 직렬화
  analyzer: '0.39.14'

Last updated

Was this helpful?