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

A highly configurable swipe interaction widget with asymmetric left/right actions — progressive increments and intentional committed actions.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'screens/basic_screen.dart';
import 'screens/counter_screen.dart';
import 'screens/custom_visuals_screen.dart';
import 'screens/list_demo_screen.dart';
import 'screens/multi_threshold_screen.dart';
import 'screens/reveal_actions_screen.dart';
import 'screens/rtl_screen.dart';
import 'screens/templates_screen.dart';
import 'screens/full_swipe_demo.dart';

void main() => runApp(const SwipeActionCellExampleApp());

/// Root application widget for the SwipeActionCell demo.
class SwipeActionCellExampleApp extends StatelessWidget {
  /// Creates the example application.
  const SwipeActionCellExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'SwipeActionCell Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo),
      ),
      // DefaultTabController manages the 9-tab state without a StatefulWidget.
      home: DefaultTabController(
        length: 9,
        child: Scaffold(
          appBar: AppBar(
            title: const Text('SwipeActionCell Demo'),
            bottom: const TabBar(
              // isScrollable: true allows more tabs than fit on screen width.
              isScrollable: true,
              tabs: [
                Tab(text: 'Basic'),
                Tab(text: 'Counter'),
                Tab(text: 'Reveal'),
                Tab(text: 'Multi-Zone'),
                Tab(text: 'Custom'),
                Tab(text: 'List'),
                Tab(text: 'RTL'),
                Tab(text: 'Templates'),
                Tab(text: 'Full Swipe'),
              ],
            ),
          ),
          // Each tab maps to one of the 9 screen widgets.
          body: const TabBarView(
            children: [
              BasicScreen(),
              CounterScreen(),
              RevealActionsScreen(),
              MultiThresholdScreen(),
              CustomVisualsScreen(),
              ListDemoScreen(),
              RtlScreen(),
              TemplatesScreen(),
              FullSwipeDemo(),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A highly configurable swipe interaction widget with asymmetric left/right actions — progressive increments and intentional committed actions.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_test

More

Packages that depend on swipe_action_cell