Skip to content

theiskaa/opacity_button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages