awesome_ui_button library

This library allows you to add a good looking button without having to write code and manage animations yourself.

Custom types of this library: InteractMode - decides the type of interaction the button uses - DEFAULT: The color of the button changes when the user presses it - OPACITY: The opacity of the button changes when the user presses it

ButtonSize - The size of the button - NORMAL - SMALL - LARGE - FULL_WIDTH: The button fills with the width of its parent

Sample Usage

  • Using the default button

        AwesomeButton(
          text: "Press me",
          onTapUp: (_) {
            // do something after the user has lifted their finger
          },
        )
    
  • Using the button with outline instead of background color

      AwesomeButton.outline(
        text: "Press me",
        onTapUp: (_) {
          // do something after the user has lifted their finger
        },
      )
    
  • Using the destructive button: This button renders with a reddish color, commonly used to provide negative options like 'cancel'

        AwesomeButton.destructive(
          text: "close",
          onTapUp: (_) {
            // do something after the user has lifted their finger
          },
        )
    

For full documentation visit https://flutterawesome.dev/docs/components/button

Classes

AwesomeButton

Enums

ButtonSize
Type for the size of the button
InteractMode
Type for the kind of interaction the button should use when the user interacts with it.