flutter_custom_buttons 0.0.3 flutter_custom_buttons: ^0.0.3 copied to clipboard
Flutter Custom Buttons provide user to customize button to their need. User can manipulate width, height, radius, color, text, text color, and action.
Flutter Custom Button package lets you add a custom button to your flutter app.
Installation #
- Add this to your package's
pubspec.yaml
file:
dependencies:
flutter_custom_buttons: ^0.0.1
- You can install packages from the command line with Flutter:
$ flutter pub get
- Import the package and use it in your Flutter App.
import 'package:flutter_custom_buttons/flutter_custom_buttons.dart';
Usage #
Buttons
(
width: 100.0,
height: 60.0,
radius: 12.0,
elevation: 2.0,
txt: "Button",
textColor: Colors.white,
fontSize: 20.0,
onPressed: () {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text("Button pressed"),
),
);
}
)