Tinyrack

Window Frame

Frame Flutter content with macOS or browser-style decorative chrome.

Frame application content with macOS or browser-style decorative chrome.

Contract

AxisContract
Variantmacos, browser
Body paddingnone, md, lg

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

TRWindowFrame(
  variant: TRWindowFrameVariant.macos,
  title: const Text('Tinyrack'),
  body: const Text('Rack overview'),
)

Examples

Application window chrome permalink

Place application menus and window commands around a draggable center region. The slots take any widget, so compose the commands from TRIconButton and pick the glyphs and intent your chrome needs.

Browser chrome permalink

Use the browser variant and address bar for web-content previews.

API

TRWindowFrame properties

PropType / defaultPurpose
bodyWidget · requiredProvides framed content.
variantTRWindowFrameVariant · macosChooses app or browser chrome.
TRWindowFrameTitleBar.leading / actionsWidget?Places any widget on opposite edges of the drag region. Compose window commands from TRIconButton and choose the glyphs and intent your chrome needs.
paddingTRWindowFramePadding · mdSets the body inset.
title / addressWidget?Labels the selected title bar.