An open API service indexing awesome lists of open source software.

https://github.com/therasuldev/cs-buttons

A Flutter package that provides custom animated button widgets for interactive UI elements. This package offers customizable buttons with heart animations, particle effects, and scaling animations, perfect for adding engaging interactions to your Flutter applications.
https://github.com/therasuldev/cs-buttons

flutter package pubdev widgets

Last synced: about 2 months ago
JSON representation

A Flutter package that provides custom animated button widgets for interactive UI elements. This package offers customizable buttons with heart animations, particle effects, and scaling animations, perfect for adding engaging interactions to your Flutter applications.

Awesome Lists containing this project

README

        

# csbuttons

A Flutter package that provides custom animated button widgets for interactive UI elements.

This package offers customizable buttons with heart animations, particle effects, and scaling animations, perfect for adding engaging interactions to your Flutter applications.

## Features

- **CSButton**: A button that triggers a particle explosion effect and a scaling animation when tapped. Ideal for buttons that need extra visual feedback.
- **CSHeartButton**: A customizable heart animation button that shows floating hearts when double-tapped. Perfect for like or love interactions.
- Customizable icon size, color, and animation properties.
- Easily integratable into any Flutter app.

### Installation

Add `csbuttons` to your `pubspec.yaml` file:

```yaml
dependencies:
csbuttons: ^0.2.6 # Replace with the latest version
```

### Preview of CSButtons

![CSButton Preview](https://github.com/user-attachments/assets/615c04a4-cb70-46ed-8ea7-0c7327ddabf0)
![CSButton Preview](https://github.com/user-attachments/assets/ca38f831-ade6-4bfa-a246-e03f051fb8b4)

### Preview of CSHeartButton

![CSHeartButton Preview](https://github.com/user-attachments/assets/68d66205-1fff-4ce3-beb1-aa6bc1d93d34)

### CSButton example

```dart
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("CSButton Example")),
body: Center(
child: CSButton(
icon: Icons.favorite,
iconSize: 60.0,
color: Colors.red,
onTap: () {
print("CSButton tapped!");
},
),
),
),
);
}
}
```

### CSHeartButton example

```dart
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("CSHeartButton Example")),
body: Center(
child: CSHeartButton(
onDoubleTap: () {},
child: Text('Double tap the screen'),
),
),
),
);
}
}
```