ez_button 0.0.2

SDKflutter
Platformandroidioswindowslinuxmacosweb

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