flutter-view
  • Introduction
  • FAQ
  • Get Started
    • Install
    • Usage
    • Test drive
    • VS Code support
    • Examples
  • Guide
    • Configuring flutter-view
    • Creating a new view
    • Creating widget layouts
    • Flow control
    • Shortcuts
    • Styling with CSS
    • Writing Reactive code
    • Styling per platform
  • Shortcuts Reference
    • Special pug tags
    • CSS style properties
Powered by GitBook
On this page
  1. Get Started

Usage

PreviousInstallNextTest drive

Last updated 6 years ago

The flutter-view command is:

flutter-view [options] <directory [, directory...]>

Flutter-view scans for Pug and HTML files in one or more directories. For it to work, you need to pass where your source code is. Normally this is the lib directory of your project.

In almost every case, you want to go to your project directory and type:

flutter-view -w lib

This will tell flutter-view to watch your lib directory, and keep watching (-w) for changes.

When flutter-view creates or updates Dart files, it will tell you: