Skip to content
On this page

SplitView

An adaptive layout with primary and secondary content panes.

SplitView in FluttyUISplitView 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.

SplitView

const SplitView({
  super.key,
  this.first,
  this.second,
  this.firstBuilder,
  this.secondBuilder,
  this.controller,
  this.initialExtent = const SplitViewExtent.fraction(.5),
  this.axis = Axis.vertical,
  this.snapPoints = const [],
  this.minFirstExtent = 64,
  this.minSecondExtent = 64,
  this.resizable = true,
  this.onChanged,
  this.onResizeStart,
  this.onResizeEnd,
  this.padding,
  this.borderRadius,
  this.paneBorderRadius,
  this.dividerExtent = 24,
  this.handleLength = 40,
  this.handleThickness = 4,
  this.backgroundColor,
  this.paneColor,
  this.handleColor,
  this.showShadow = true,
  this.keyboardStep = 16,
  this.semanticLabel = 'Resize panes',
  this.motion,
});
ParameterTypeRequiredDefault
keyKey?Nonull
firstWidget?Nonull
secondWidget?Nonull
firstBuilderSplitViewPaneBuilder?Nonull
secondBuilderSplitViewPaneBuilder?Nonull
controllerSplitViewController?Nonull
initialExtentSplitViewExtentNoconst SplitViewExtent.fraction(.5)
axisAxisNoAxis.vertical
snapPointsList<SplitViewExtent>Noconst []
minFirstExtentdoubleNo64
minSecondExtentdoubleNo64
resizableboolNotrue
onChangedValueChanged<SplitViewMetrics>?Nonull
onResizeStartValueChanged<SplitViewMetrics>?Nonull
onResizeEndValueChanged<SplitViewMetrics>?Nonull
paddingEdgeInsetsGeometry?Nonull
borderRadiusdouble?Nonull
paneBorderRadiusdouble?Nonull
dividerExtentdoubleNo24
handleLengthdoubleNo40
handleThicknessdoubleNo4
backgroundColorColor?Nonull
paneColorColor?Nonull
handleColorColor?Nonull
showShadowboolNotrue
keyboardStepdoubleNo16
semanticLabelStringNo'Resize panes'
motionComponentMotion?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/split_view/split_view.dart

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

DartFlutter

Get started with FluttyUI