Button With Icon
This Flutter package provides a customizable button widget with an icon.
Features
- Create buttons with custom text, icons, colors, padding, border radius, and tap animation.
- Supports
onTap
callback for handling button taps.
Getting Started
To use this package, follow these steps:
-
Add the package to your
pubspec.yaml
file:dependencies: button_with_icon: ^0.0.1
Run flutter pub get to install the package.
Import the package in your Dart code:
import 'package:flutter/material.dart'; import 'package:text_button_icon/text_button_icon.dart';
Usage To create a button with the ButtonWithIcon widget:
class _MyHomePageState extends State
Customize the properties of the ButtonWithIcon widget as needed for your application.