Smooth Widgets is a collection of custom widgets for Flutter, designed to help you build beautiful and responsive user interfaces quickly and easily.
This package currently includes the following widgets:
SmoothTextButton:
A customizable button widget with smooth animations and multiple styles.
The SmoothTextButton
widget is a customizable button with a smooth border radius and various properties. It's highly configurable, enabling the creation of stylish buttons that seamlessly blend into different UI designs.
SmoothTextButton(
title: 'Click Me',
isLoading: false,
backgroundColor: Colors.blue,
isActive: true,
onPressed: () {
// Action to perform on button press
},
)
title
: The text displayed on the button.isLoading
: A boolean to indicate if the button is in a loading state.backgroundColor
: The background color of the button.isActive
: A boolean to control the button's active state.onPressed
: The callback function executed when the button is pressed.
The SmoothIconButton
widget is an icon button with a smooth border and a backdrop filter. It offers an elegant design suitable for various icon-based interactions within your app.
SmoothIconButton(
icon: Icons.add,
onPressed: () {
// Action to perform on icon button press
},
)
icon
: The icon displayed within the button.onPressed
: The callback function executed when the icon button is pressed.
The SmoothModal
widget presents a modal bottom sheet with a smooth design and blur effect, providing a sophisticated user experience for displaying additional content or actions.
void _showModal(BuildContext context) {
smoothModal(
YourCustomWidget(),
context,
willPopScope: true,
);
}
child
: The widget displayed within the modal.context
: The current build context.willPopScope
: A boolean to enable or disable the modal's dismissal on back button press.
The SmoothTextField
widget offers a sleek text input field with smooth styling and customizable features, enhancing the user's input experience.
SmoothTextField(
hintText: 'Enter your text',
// Other parameters...
)
hintText
: The hint text displayed when the field is empty.suffixIcon
: The icon displayed at the end of the text field.prefixIcon
: The icon displayed at the beginning of the text field.- ... (Other parameters)
This package is open-source and contributions are always welcome! If you find a bug or have a feature request, please file an issue on GitHub.
If you would like to contribute code to this project, please fork the repository and submit a pull request.
This package is released under the MIT License. See LICENSE file for details.