Skip to content
On this page

Separator

A divider between sections or related content.

Separator in FluttyUISeparator 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.

Separator

const Separator({
  super.key,
  this.size,
  this.direction = Axis.horizontal,
  this.color,
  this.thickness = 1,
  this.borderRadius,
  this.length,
  this.indent = 0,
  this.endIndent = 0,
  this.label,
  this.labelColor,
  this.labelFontSize,
  this.labelGap,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
directionAxisNoAxis.horizontal
colorColor?Nonull
thicknessdoubleNo1
borderRadiusdouble?Nonull
lengthdouble?Nonull
indentdoubleNo0
endIndentdoubleNo0
labelString?Nonull
labelColorColor?Nonull
labelFontSizedouble?Nonull
labelGapdouble?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/layouts/separator/separator.dart

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

DartFlutter

Get started with FluttyUI