Skip to content

Flutter watch for files changes and hot reload directly from terminal

Notifications You must be signed in to change notification settings

gkssjovi/flutter-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Flutter watch for files changes and hot reload directly from terminal

Installation

git clone https://github.com/gkssjovi/flutter-watch.git
cd flutter-watch
cargo build --release
ln -s $PWD/target/release/flutter-watch /usr/local/bin/flutter-watch

Add to your ~/.zshrc file

alias flutter-run="flutter run --pid-file /tmp/flutter.pid"

Usage

Use a different terminal window

flutter-run or flutter run --pid-file /tmp/flutter.pid

If you are outside of the flutter project directory

flutter-watch /path/to/your/flutter/project

If you are in the flutter project directory

flutter-watch

Help

flutter-watch -h

USAGE:
    flutter-watch [OPTIONS] [TARGET]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -e, --event-type <EVENT_TYPE>    'raw' or 'debounce'. Example (--event-type debounce)
    -p, --pid <PID>                  Using a pid. Example (--pid 12345)
    -f, --pid-file <FILE>            Sets the pid file location. Example: (--pid-file /tmp/flutter.pid)

ARGS:
    <TARGET>    Set the project target. Example (flutter-watch /path/to/your/flutter/project/lib)

About

Flutter watch for files changes and hot reload directly from terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages