flutter_beautify 1.0.1 copy "flutter_beautify: ^1.0.1" to clipboard
flutter_beautify: ^1.0.1 copied to clipboard

A beautiful custom widget cli for Flutter.

🎨 Flutter Beautify #

A powerful CLI tool for Flutter developers to quickly generate beautiful, customizable widgets and components for your Flutter projects.

Dart Pub License


📑 Table of Contents #


Quick Features #

  • 🚀 Fast Widget Generation - Create custom widgets with a single command
  • 🎯 Template-Based - Pre-built, production-ready widget templates
  • 📁 Organized Structure - Automatically creates lib/widgets/ directory

Installation #

Prerequisites #

  • Dart SDK 3.9.2 or higher

Activate CLI from pub.dev #

dart pub global activate flutter_beautify

Verify installation:

flutter_beautify --help

Widgets #

Button

flutter_beautify add button

What It Does #

  1. Creates lib/widgets/ directory (if it doesn't exist)
  2. Generates lib/widgets/button.dart with a ready-to-use button widget
  3. Displays import statement for quick copy-paste

Generated Button Widget #

import 'package:flutter/material.dart';

class Button extends StatelessWidget {
  final VoidCallback? onPressed;
  final Widget? child;
  final String? title;

  const Button({super.key, this.onPressed, this.child, this.title});

  @override
  Widget build(BuildContext context) {
    return ElevatedButton(
      onPressed: onPressed,
      child: child ?? Text(title ?? ""),
    );
  }
}

Use in Your App #

import 'package:your_app/widgets/button.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Flutter Beautify Demo')),
        body: Center(
          child: Button(
            title: 'Click Me',
            onPressed: () => print('Button pressed!'),
          ),
        ),
      ),
    );
  }
}

📄 License #

This project is licensed under the MIT License. See the LICENSE file for details.


👨‍💻 Author #

DeveloperRejaul


🤝 Contributing #

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request


💬 Support & Feedback #

Have questions or found a bug?


📊 Project Stats #


🙏 Acknowledgments #

  • Thanks to the Dart and Flutter teams for creating amazing tools
  • Inspired by modern CLI tools for developer productivity
  • Special thanks to all contributors and users

Happy coding! 🎉

1
likes
0
points
250
downloads

Publisher

unverified uploader

Weekly Downloads

A beautiful custom widget cli for Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on flutter_beautify