hero_button 1.0.4
hero_button: ^1.0.4 copied to clipboard
A beautiful button library for flutter, made easy to use properties which can't used in default button, user can apply color, icon, padding easily which using extra code.
Example #
Complete example code for hero_button.
import 'package:flutter/material.dart';
import 'package:hero_button/hero_button.dart';
void main() {
runApp(MaterialApp(
home: MyApp(),
));
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("My HeroButton"),
),
body: Column(
children: [
HeroButton(
preIcon: Icons.person,
height: 40,
borderRound: true,
textColor: Colors.white,
textSize: 20,
backColor: Colors.red,
padding: EdgeInsets.all(20),
fullWidth: true,
label: "My Name is Button",
onPressed: () {
print("Button Clicked!");
},
)
],
),
);
}
}