Skip to content
pubscout

scale_button

2.1.2, released 5 years ago by an unverified publisher

A Flutter button that scales on tap with customizable bounds and duration

WASM-ready
$ flutter pub add scale_button
Source repository

What it does

Provides a simple button widget that animates its scale when pressed. The scale can be reversed and the animation duration and bound are configurable.

AI-written summary of version 2.1.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a quick, animated button without custom gesture handling
  • You want a reusable button that fits any child widget
  • You prefer a declarative widget over writing custom animation code

Skip it when

  • You need complex gesture interactions or physics-based motion
  • You require platform-specific button styles beyond scaling
  • You are building a large-scale UI library and want to avoid adding extra dependencies

Strengths

  • Easy to use, single widget
  • Fully customizable via parameters
  • Supports null safety and cross-platform

Weaknesses

  • Limited to scaling animation only
  • No built-in ripple or elevation effects
  • No support for long-press or custom gestures

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency in pubspec and import 'package:scale_button/scale_button.dart';

import 'package:scale_button/scale_button.dart';

ScaleButton(
  child: Text('Press me'),
  bound: 0.8,
  duration: Duration(milliseconds: 200),
);

Alternatives

Packages that do the same job and could replace scale_button.