Skip to content

This repo is exploring freezed and learning Code Generation.

Notifications You must be signed in to change notification settings

devkishor8007/exploring_freezed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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