flutter_beautify 1.0.3
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.
📑 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
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
- 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: devrejaul.official@gmail.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! 🎉