simple_swipe_button 1.0.2 copy "simple_swipe_button: ^1.0.2" to clipboard
simple_swipe_button: ^1.0.2 copied to clipboard

A simple and customizable swipe button for Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:simple_swipe_button/simple_swipe_button.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: Text('Simple Swipe Button Example')),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: SimpleSwipeButton(
              initialText: "Swipe to start",
              completedText: "Completed",
              onSwipeComplete: () {
                debugPrint("Swipe Completed!");
              },
            ),
          ),
        ),
      ),
    );
  }
}
1
likes
145
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

A simple and customizable swipe button for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on simple_swipe_button