hero_button 1.0.4 copy "hero_button: ^1.0.4" to clipboard
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/EXAMPLE.md

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!");
            },
          )
        ],
      ),
    );
  }
}
4
likes
80
pub points
25%
popularity

Publisher

verified publisherrohitchouhan.com

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.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on hero_button