Easy to use Pre-made Rounded Buttons with advanced features for Flutter.
Check the example project.
First you have to add the package dependency in pubspec.yml
rounded_button: ^latest
Get the version from pub.dev
The Button is a stateless widget. So you can use it anywhere you can use stateless widget.
In your code you can use the rounded button without icon like this.
RoundedButton(
primaryColor: Color(0xFFAC00FF),
text: 'RoundedButton',
onPressed: () {},
),
In your code you can use the rounded button with icon like this.
RoundedButton(
primaryColor: primaryColor,
text: 'RoundedButton',
onPressed: () {},
icon: Icon(
Icons.access_alarm_rounded,
),
),
Check the optional settings for advanced use.
- Added optional settings
- icon,
- borderColor,
- textColor,
- splashColor,
- backgroundColor,
- elevation = 3.5,
- textStyle,
- borderRadius,
- padding = const EdgeInsets.all(15.0),