Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.18 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.18 KB

exploring_freezed

A new Flutter Exploring Freezed Project.

Getting Started

I am implementing the Freezed Dart Package i.e. Code Generator with Flutter. As, I am getting the data from the API using freezed i.e. Code Generator in the flutter.

  1. Fork the project and clone through HTTPS or SSH or GitHub CLI
  2. Open Command Prompt - git clone https://github.com/devkishor8007/exploring_freezed.git
  3. Open the Directory of Clone file, flutter clean and flutter pub get in the terminal
  4. You can see the output in your mobile screen

Learn how to use freezed class and json_serializable in flutter application

  • To Use Freezed Data class
  • To Use the User json_serializable in the Data class

Add three Package in the pubspec.yaml

  • freezed
  • build_runner
  • freezed_annotation

Inside of your terminal within the project to generate our code, run:

flutter pub run build_runner build
flutter pub run build_runner watch --delete-conflicting-outputs

For More You Can Check This