Loading...
Loading...
Show slide-out panels with showShadSheet and ShadSheet; side (top, right, bottom, left), title, description, actions, child. Use when adding side panels, drawers, or slide-over content in a Flutter shadcn_ui app.
npx skill4agent add serverpod/skills-registry shadcn_ui-sheetshowShadSheet(context: context, side: ShadSheetSide.*, builder: (context) => ShadSheet(...))sideShadSheetSide.topShadSheetSide.rightShadSheetSide.bottomShadSheetSide.leftShadSheettitledescriptionchildactionsconstraintsBoxConstraints(maxWidth: 512)showShadSheet(
side: ShadSheetSide.right,
context: context,
builder: (context) => ShadSheet(
constraints: const BoxConstraints(maxWidth: 512),
title: const Text('Edit Profile'),
description: const Text(
"Make changes to your profile here. Click save when you're done",
),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 20),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
spacing: 16,
children: profile
.map(
(p) => Row(
children: [
Expanded(
child: Text(
p.title,
textAlign: TextAlign.end,
style: theme.textTheme.small,
),
),
const SizedBox(width: 16),
Expanded(
flex: 5,
child: ShadInput(initialValue: p.value),
),
],
),
)
.toList(),
),
),
actions: const [
ShadButton(child: Text('Save changes')),
],
),
);side: ShadSheetSide.topShadSheetSide.bottomShadSheetSide.leftShadSheetSide.rightshowShadSheetconstraints: const BoxConstraints(maxWidth: 512)ShadSheet