swipable_stack 1.1.0 copy "swipable_stack: ^1.1.0" to clipboard
swipable_stack: ^1.1.0 copied to clipboard

outdated

A widget for stacking cards, which users can swipe horizontally and vertically with beautiful animations like Tinder.

example/lib/main.dart

import 'package:example/examples/allow_swipe_direction.dart';
import 'package:example/examples/basic_example.dart';
import 'package:example/examples/popup_on_swipe_example.dart';
import 'package:example/examples/swipe_anchor_example.dart';
import 'package:flutter/material.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(
    const MyApp(),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Builder(
        builder: (context) {
          return Scaffold(
            appBar: AppBar(
              title: const Text('swipable_stack demo'),
            ),
            body: ListView(
              children: [
                ListTile(
                  title: const Text('BasicExample'),
                  onTap: () {
                    Navigator.push(
                      context,
                      BasicExample.route(),
                    );
                  },
                ),
                ListTile(
                  title: const Text('IgnoreVerticalSwipeExample'),
                  onTap: () {
                    Navigator.push(
                      context,
                      IgnoreVerticalSwipeExample.route(),
                    );
                  },
                ),
                ListTile(
                  title: const Text('PopupOnSwipeExample'),
                  onTap: () {
                    Navigator.push(
                      context,
                      PopupOnSwipeExample.route(),
                    );
                  },
                ),
                ListTile(
                  title: const Text('SwipeAnchorExample'),
                  onTap: () {
                    Navigator.push(
                      context,
                      SwipeAnchorExample.route(),
                    );
                  },
                ),
              ],
            ),
          );
        },
      ),
    );
  }
}
297
likes
0
pub points
93%
popularity

Publisher

verified publisherheavenosk.com

A widget for stacking cards, which users can swipe horizontally and vertically with beautiful animations like Tinder.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, sprung

More

Packages that depend on swipable_stack