Welcome!, This repository contains a collection of reusable Flutter widgets that can be used to jumpstart your new projects. The goal of this package is to help developers save time by providing commonly used UI components, which can be easily customized and integrated into their own apps.
Getting Started To get started with this package, simply add the following line to your pubspec.yaml file:
pubspec.yaml
dependencies: widgets: path: packages/widgets Then, run flutter packages get to install the package.
Widgets The following widgets are currently available in this package:
Button: A customizable button widget. TextField: A text input field widget with support for validation and error messages. Card: A simple card widget with customizable content. Icon: A customizable icon widget. Usage To use a widget from this package, simply import it into your Flutter code like so:
arduino Copy code import 'package:widgets/widgets.dart'; Then, you can use the widget in your code like any other Flutter widget:
less Copy code MyElevatedButton( text: "Click me!", onPressed: () { print("Button clicked!"); }, ),
Contributing Contributions to this package are welcome! If you have a widget that you think would be useful to others, feel free to open a pull request with your changes. Please make sure to follow the existing code style and add unit tests for any new functionality.
License This package is licensed under the MIT license. See the LICENSE file for more information.