https://github.com/chipinvision/edgy_button
Pin Edged Button in Flutter
https://github.com/chipinvision/edgy_button
dart flutter flutterpackage
Last synced: 11 months ago
JSON representation
Pin Edged Button in Flutter
- Host: GitHub
- URL: https://github.com/chipinvision/edgy_button
- Owner: chipinvision
- License: mit
- Created: 2022-09-18T10:37:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T11:09:51.000Z (over 3 years ago)
- Last Synced: 2025-01-29T17:44:40.256Z (about 1 year ago)
- Topics: dart, flutter, flutterpackage
- Language: Dart
- Homepage: https://pub.dev/packages/edgy_button
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# edgy_button - Pin Edged Button in Flutter
A new and unique style of button that will take your Flutter Project to a next level
## Demo

## Getting started
- In pubspec.yaml file, add the following dependency:
```
edgy_button: ^0.0.1
```
- Import the package into your project:
```
import 'package:edgy_button/edgy_button.dart';
```
- You can now use the `EdgyButton()` anywhere in the project
```
// For normal Button
EdgyButton(
buttonHeight: 50,
buttonWidth: 200,
label: 'BUTTON',
labelStyle: const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 24,
color: Colors.white,
),
buttonColor: Colors.redAccent,
onPressed: (){
log('Clicked');
},
),
// For bordered Button
EdgyButton(
buttonHeight: 50,
buttonWidth: 200,
label: 'BUTTON',
labelStyle: const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 24,
color: Colors.green,
),
border: Border.all(
color: Colors.green,
width: 2,
),
buttonColor: Colors.transparent,
onPressed: (){
log('Clicked Pro');
},
),
```
## Features
| Property | Description |
|-------------------------|--------------------------|
| buttonHeight (required) | Height of the Button |
| buttonWidth (required) | Width of the Button |
| label (required) | Text inside the Button |
| labelstyle | For styling the text |
| buttonColor (required) | Color of the Button |
| onPressed (required) | onPressed Function |
| border | Add border to the Button |