flutter_beautify 1.0.1
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.
📑 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 #
- Creates
lib/widgets/directory (if it doesn't exist) - Generates
lib/widgets/button.dartwith a ready-to-use button widget - 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
- GitHub: @DeveloperRejaul
- Email: devrejaul.official@gmail.com
🤝 Contributing #
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📚 Related Libraries & Resources #
- Dart SDK - Official Dart programming language
- Flutter - Beautiful UI framework
- pub.dev - Dart packages repository
- Material Design - Design system used in widgets
💬 Support & Feedback #
Have questions or found a bug?
- 🐛 Report Issues: GitHub Issues
- 💡 Feature Requests: Open a new issue with
[Feature Request]prefix - 📧 Email Support: developer.rejaul@example.com
📊 Project Stats #
- Version: 1.0.0
- Dart SDK: 3.9.2+
- License: MIT
- Repository: flutter-beautify
🙏 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! 🎉