Skip to content
On this page

SwipeableRow

A row that reveals contextual actions with a swipe.

SwipeableRow in FluttyUISwipeableRow in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

SwipeableRow

const SwipeableRow({
  super.key,
  required this.child,
  this.startActions = const [],
  this.endActions = const [],
  this.controller,
  this.onChanged,
  this.isDisabled = false,
  this.closeOnAction = true,
  this.actionWidth = 64,
  this.spacing = 8,
  this.actionVerticalInset = 4,
  this.borderRadius,
  this.backgroundColor,
  this.openThreshold = .35,
  this.enableFullSwipe = true,
  this.commitThreshold = .7,
  this.animationDuration,
});
ParameterTypeRequiredDefault
keyKey?Nonull
childWidgetYes—
startActionsList<SwipeableRowAction>Noconst []
endActionsList<SwipeableRowAction>Noconst []
controllerSwipeableRowController?Nonull
onChangedValueChanged<SwipeableRowSide>?Nonull
isDisabledboolNofalse
closeOnActionboolNotrue
actionWidthdoubleNo64
spacingdoubleNo8
actionVerticalInsetdoubleNo4
borderRadiusBorderRadiusGeometry?Nonull
backgroundColorColor?Nonull
openThresholddoubleNo.35
enableFullSwipeboolNotrue
commitThresholddoubleNo.7
animationDurationDuration?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/data_display/swipeable_row/swipeable_row.dart

This reference is generated from the SwipeableRow declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI