FLUTTER ECOSYSTEM

brizaldi/flutter-project-template-riverpod

Riverpod를 사용한 새 Flutter 프로젝트의 시작 템플릿입니다.

flutter-project-template-riverpod 프로젝트 이미지
Stars
102
Forks
24
최근 푸시(UTC)
2023. 12. 6.
프로젝트 상태
활성
Bahri Rizaldi GitHub avatar
GITHUB User

Bahri Rizaldi ↗

언어DartC++CMakeHTMLCSwiftKotlinObjective-C

기술 주제

사용 중인 의존성

의존성 목록 32 개

순위

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

flutter-project-template-riverpod

Requirements

Flutter: >=3.16.0 Dart SDK: >=3.2.0

Supported Platforms

Android iOS Web Windows MacOS Linux

Live Demo

https://brizaldi.github.io/flutter-project-template-riverpod/

Installation

  • Add Flutter to your machine
  • Open this project folder with Terminal/CMD
  • Ensure there's no cache/build leftover by running flutter clean in the Terminal
  • Run in the Terminal flutter packages get
  • Run in the Terminal dart run build_runner build --delete-conflicting-outputs

Additional steps for iOS

  • Open ios folder inside Terminal/CMD
  • Run in the Terminal pod install
  • Run in the Terminal pod update

Running the App

  • Open Android Emulator or iOS Simulator
  • Run flutter run --flavor {RELEASE_TYPE} --dart-define flavor={RELEASE_TYPE}
  • Supported release type: development, staging, and production

Build an APK

  • Run flutter build apk --flavor {RELEASE_TYPE}
  • The apk will be saved under this location: [project]/build/app/outputs/flutter-apk/
  • We can also build appbundle (.aab) by running this command: flutter build appbundle --flavor {RELEASE_TYPE} --dart-define flavor={RELEASE_TYPE}

Build for iOS

  • Follow the tutorial from this link: https://flutter.dev/docs/deployment/ios#create-a-build-archive-with-xcode
  • Don't forget to add the release type behind the build command
  • For example flutter build ipa --flavor {RELEASE_TYPE} --dart-define flavor={RELEASE_TYPE}

For more information, check out the official documentation