Search packages, repositories and app categories

animated_button cover
Package detailsv0.3.1

animated_button

A simple and highly customizable Animated button with 3D like effect.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1K
Likes
169
Pub points
140

Install package

flutter pub add animated_button

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A simple and highly customizable animated button that delivers a 3D-like visual effect. Built with Flutter, it enhances user interaction with smooth animations and responsive feedback. The button supports custom styling, color transitions, and scalable effects across multiple platforms. Ideal for modern UIs where visual appeal and interactivity are key. It integrates seamlessly into apps targeting Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Interactive app interfaces
  • Gamified user experiences
  • Modern mobile and web applications
  • Enhanced form submissions
  • Visual feedback in digital products

Key features

  • 3D-like animation effect
  • Highly customizable appearance
  • Smooth transition animations
  • Cross-platform compatibility
  • Easy integration with Flutter
  • Responsive touch feedback

Suitable for

  • Flutter developers seeking engaging UI elements
  • Design-focused applications
  • Apps requiring interactive buttons
  • Prototyping dynamic interfaces
  • Projects aiming for polished visual design

Considerations

  • May impact performance on low-end devices
  • Customization requires understanding of Flutter animations
  • Limited to basic button functionality without additional logic
  • Not suitable for complex gesture interactions
  • Best used with lightweight content inside the button

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Animated Button

A very simple and customizable animated button. Providing simple animation, and many customizable attributes such height, width, child, ... etc.

Getting Started

Nothing difficult here, yet!

Simple Example

import 'package:animated_button/animated_button.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Animated Button Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Demo(),
    );
  }
}

class Demo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child:             AnimatedButton(
          onPressed: () {},
          color: Colors.blue,
          enabled: true,
          disabledColor: Colors.grey,
          shadowDegree: ShadowDegree.light,
          borderRadius: 8,
          duration: 85,
          height: 40,
          width: 140,
          child: Text(
            'Animated button',
            style: TextStyle(
              fontSize: 14,
              color: Colors.white,
              fontWeight: FontWeight.w500,
            ),
          ),
        ),
      ),
    );
  }
}

Button attributes

AnimatedButton(
child: ...,			    // Child widget, Row, Text, Column,...etc.
onPressed: () {},  	// Callback for onTap event
duration: 70,  		  // Animaton duration, default is 70 Milliseconds
height: 100,  		  // Button Height, default is 64
width: 200,  			  // Button width, default is 200
enabled: true,  		// When disabled, onTap won't be called
shadowDegree: ShadowDegree.dark, // Shadow color is generated from button color,
color: Colors.blue,
disabledColor: Colors.grey,
borderRadius: 8,
)

For more examples, check example folder

License

MIT License.

Categories

Source repository

Projects using this package

No data available yet.