flutsim 2.0.0
flutsim: ^2.0.0 copied to clipboard
A powerful Flutter CLI tool for enhanced development experience with auto-reload, hot reload, and instant UI updates
FlutSim π #
A powerful Flutter CLI tool for enhanced development experience with auto-reload, hot reload, and instant UI updates.
Features β¨ #
- π Global CLI Tool - Use
flutsim create
andflutsim run
anywhere - π Auto-Reload - Automatic page refresh on file changes
- β‘ Hot Reload - Instant code updates without full rebuild
- π¨ Instant UI Updates - Real-time UI changes
- π± QR Code Access - Easy mobile testing with QR codes
- π Network Access - Access your app from any device on the network
- π§ Smart Flutter Detection - Automatically finds Flutter installation
- βοΈ Configurable - Customize behavior through configuration files
Installation π¦ #
Global Installation #
# Install globally using pub
dart pub global activate flutsim
# Or install from git
dart pub global activate --source git https://github.com/Rikenpatell/Flutsim.git
Prerequisites #
- Dart SDK (3.0.0 or higher)
- Flutter SDK
Usage π οΈ #
Create a New Flutter Project #
# Create a new Flutter project with FlutSim configuration
flutsim create my_awesome_app
# Navigate to your project
cd my_awesome_app
Run Your Flutter Project #
# Run with FlutSim enhanced features
flutsim run
# Or run normally with Flutter
flutter run
Available Commands #
flutsim create <project_name> # Create a new Flutter project
flutsim run # Run current project with FlutSim
flutsim --help # Show help information
Features in Detail π #
Auto-Reload System #
FlutSim automatically detects file changes and reloads your web application, providing instant feedback during development.
Hot Reload Support #
Experience lightning-fast development with hot reload capabilities that update your code without losing application state.
Network Access #
Access your Flutter web app from any device on your network using the provided IP address and QR code.
Smart Configuration #
FlutSim automatically creates configuration files for optimal development experience:
{
"projectName": "my_awesome_app",
"autoReload": true,
"hotReload": true,
"networkAccess": true,
"qrCode": true,
"createdAt": "2024-01-01T00:00:00.000Z"
}
Configuration βοΈ #
Project Configuration #
Each FlutSim project includes a .flutsim/config.json
file where you can customize:
- Auto-reload behavior
- Hot reload settings
- Network access permissions
- QR code generation
- Port configurations
Global Configuration #
Create a global configuration file at ~/.flutsim/config.json
for default settings across all projects.
Development Workflow π» #
- Create Project:
flutsim create my_app
- Navigate:
cd my_app
- Run:
flutsim run
- Develop: Make changes to your code
- See Changes: Watch your app update automatically!
Troubleshooting π§ #
Flutter Not Found #
If FlutSim can't find Flutter, it will:
- Search common installation paths
- Provide installation instructions
- Suggest PATH configuration
Port Conflicts #
FlutSim automatically finds available ports if the default port is in use.
Network Issues #
- Ensure your firewall allows the application
- Check that you're on the same network as your devices
- Verify the IP address shown in the terminal
Contributing π€ #
We welcome contributions! Please see our Contributing Guide for details.
License π #
This project is licensed under the Apache License- see the LICENSE file for details.
Support π¬ #
- π Issues: GitHub Issues
Changelog π #
See CHANGELOG.md for a list of changes and version history.
Made with β€οΈ for the Flutter community