s_bounceable 1.0.0 copy "s_bounceable: ^1.0.0" to clipboard
s_bounceable: ^1.0.0 copied to clipboard

A Flutter widget providing bounceable animations with intelligent single and double tap detection support.

example/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('SBounceable Example')),
        body: Center(
          child: SBounceable(
            onTap: () {
              debugPrint('Single tap!');
            },
            onDoubleTap: () {
              debugPrint('Double tap!');
            },
            child: Container(
              padding: const EdgeInsets.all(24.0),
              decoration: BoxDecoration(
                color: Colors.blue,
                borderRadius: BorderRadius.circular(12),
              ),
              child: const Text(
                'Tap or Double Tap Me',
                style: TextStyle(color: Colors.white, fontSize: 18),
              ),
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
167
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget providing bounceable animations with intelligent single and double tap detection support.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_bounceable

More

Packages that depend on s_bounceable