flutter_beautify 1.0.3 copy "flutter_beautify: ^1.0.3" to clipboard
flutter_beautify: ^1.0.3 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

Use in Your App #

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          spacing: 10,
          children: <Widget>[
            const Text('You have pushed the button this many times:'),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),

            // apply widgets
            Button.solid(
              onPressed: () {
                _incrementCounter();
              },
              color: Colors.deepOrange,
              leading: Icon(Icons.save, size: 20),
              child: const Text("data"),
            ),
            Button.outline(
              title: "Click Me",
              onPressed: () {
                _incrementCounter();
              },
              color: Colors.deepOrange,
            ),
            Button.link(
              title: "Click Me",
              onPressed: () {
                _incrementCounter();
              },
              color: Colors.deepOrange,
            )
          ],
        ),
      ),
    );
  }
}


📄 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
145
points
250
downloads

Publisher

unverified uploader

Weekly Downloads

A beautiful custom widget cli for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on flutter_beautify