GithubHelp home page GithubHelp logo

demo's Introduction

Mason Template Setup for this Project

Step 1: Installing Mason CLI

Prerequisites

To install Mason CLI, ensure you have the Dart SDK installed on your machine.

Installation via Pub.dev

We recommend installing mason_cli from pub.dev using the following command:

# Activate Mason CLI from pub.dev
dart pub global activate mason_cli

Verification

After successful installation, you can verify your setup by running the mason command in your terminal. A successful installation will yield an output similar to the following:

🧱  mason • lay the foundation!
Usage: mason <command> [arguments]
Global options:
-h, --help       Print this usage information.
    --version    Print the current version.
Available commands: ...

Step 2: Using Mason CLI

Retrieve Mason Feature

To retrieve the Mason feature, run the following command:

mason get

Create a Mason Feature

To create a new feature with Mason, use the command:

mason make feature

When prompted, enter the name of the feature you want to add. For example, to add a "product" feature, input:

Enter the feature name: 
product

Confirmation

A successful addition of a new feature will generate output similar to this:

? What is your name? (Dash) product
✓ Generated 9 files. (0.1s)
  created lib\features\product\data\models\data_model.dart
  created lib\features\product\data\models\test_data_model.dart
  created lib\features\product\data\repositories\product_repository.dart
  created lib\features\product\domain\entities\data.dart
  created lib\features\product\domain\entities\test_data.dart
  created lib\features\product\presentation\state_holders\if_data_in_list.dart
  created lib\features\product\presentation\state_holders\product_controller.dart
  created lib\features\product\presentation\ui\screens\product_screen.dart
  created lib\features\product\presentation\ui\widgets\product_widgets.dart

🛑 How to remove brick directory's warning in Android Studio and VS Code

ℹ️ Android Studio

You can right-click on the directory that you need to hide and select:

Mark Directory as -> Excluded

If you want to include a directory back, find the path of your excluded directory and:

Right-click -> Mark Directory as -> Cancel Exclusion

how-to-remove-error-warning-in-android-studio

ℹ️ VS-Code

Add this code:

"dart.analysisExcludedFolders": [
    "bricks"
]

in settings.json in VS Code to ignore the bricks folder.

demo's People

Contributors

musfique113 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.