Skip to content

About

Opacity Button which make able to convert any widget to button with opacity animation.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

Opacity Button

Package Version LICENSE


Installing

Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  opacity_button:
    git:
      url: git://github.com/theiskaa/opacity_button.git 
      ref: main

Install it

You can install packages from the command line:

$ flutter pub get
...

Import it

Now in your Dart code, you can use:

import 'package:opacity_button/opacity_button.dart';

Usage

OpacityButton(
  // Required to take a widget.
  child: Image.network("https://picsum.photos/200/300"),

  onLongPress: () {
    // Do something...
  }

  // Customize the degree of opacity when the button is pressed.
  opacityValue: .3,

  // Always include semantics of opacity.
  alwaysIncludeSemantics: false,
),

About

Opacity Button which make able to convert any widget to button with opacity animation.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages