Last updated:
0 purchases
ez button
EZ Button #
EZ Button package lets you add custom buttons to your Flutter app.
Installation #
Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
ez_button: ^0.0.1
copied to clipboard
Import the package and use it in your Flutter App.
import 'package:ezbutton/ezbutton.dart';
copied to clipboard
Example #
There are a number of properties that you can modify:
buttonName
buttonHeight
elevation
textFontSize
buttonColor
padding
onTap
roundedCorners
borderRadius
import 'package:flutter/material.dart';
class Display extends StatelessWidget {
const Display({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: EZButton(
splashForegroundColor: Colors.red,
buttonName: 'Titus',
textFontSize: 20,
padding: const EdgeInsets.all(10.0),
margin: const EdgeInsets.all(10),
roundedCorners: true,
borderRadius: 30,
onTap: () {
print('object');
},
textColor: Colors.blue,
buttonColor: Colors.redAccent,
buttonHeight: 50,
buttonWidth: double.infinity,
),
),
);
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.