Tinyrack

NavigationMenu

Open rich navigation panels from a coordinated horizontal trigger list.

Open rich navigation panels from a coordinated horizontal trigger list.

Contract

AxisContract
Layer sizelayerSize sizes each complete navigation panel. The default uses the fixed navigation-panel width token; height follows content until the safe viewport clamps it.

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';

TRNavigationMenu<String>(
  items: const [
    TRNavigationMenuItem(value: 'docs', trigger: Text('Docs'), content: Text('Guides')),
  ],
)

API

Layer properties

PropType / defaultPurpose
layerSizeTRLayerSize · fixed navigationPanelWidth / content heightReplaces the former panel-only width with one policy for the complete anchored layer.