ez_button 0.0.2 copy "ez_button: ^0.0.2" to clipboard
ez_button: ^0.0.2 copied to clipboard

A simple button package to make development easy

EZ Button #

EZ Button package lets you add custom buttons to your Flutter app.

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  ez_button: ^0.0.1
  1. Import the package and use it in your Flutter App.
import 'package:ezbutton/ezbutton.dart';

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,
        ),
      ),
    );
  }
}

3
likes
130
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A simple button package to make development easy

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on ez_button