Tinyrack

Collapsible

Reveal or hide a single content panel behind a trigger.

Reveal or hide a single content panel behind a trigger.

Contract

AxisContract
Attached edgeattachedEdge squares the corners of one edge and drops its border, so the panel reads as one surface with the neighbor that provides that border — TRCollapsibleAttachedEdge.bottom for a drawer sitting on a card below, top for the inverse, none (default) for a free-standing panel.

Install

Add the package, then import its public library.

flutter pub add tinyrack_ui
import 'package:tinyrack_ui/tinyrack_ui.dart';

Playground

Usage

import 'package:material_ui/material_ui.dart';
import 'package:tinyrack_ui/tinyrack_ui.dart';

const TRCollapsible(
  trigger: Text('Details'),
  content: Text('Panel body'),
)

API

Collapsible preserves native Flutter state and callbacks while applying Tinyrack token defaults.