Side sheet
A side sheet keeps details about the current item beside the page. Give the panel a heading so it is clear which item the details describe.
Inspect a file
#Open File details, read the owner and last edit, then close the panel. Switch to RTL and open it again to see which edge it uses.
components/side-sheet/appliance/inspect_file.dart
import 'package:flutter/widgets.dart';
import 'package:appliance_ui/appliance_ui.dart';
class InspectFile extends StatelessWidget {
const InspectFile({super.key});
@override
Widget build(BuildContext context) => ApplianceButton(
'File details',
onPressed: () => showApplianceSideSheet<void>(
context: context,
title: 'File details',
builder: (_) => const Text('Owner: Mara Chen\nLast edited: 14 June'),
),
);
}
Parameters
showApplianceSideSheet API ↗title- Heading at the top of the panel.
builder- Builds the content inside the sheet.
width- Requested width of the open panel.
edge- Places the panel at the reading start or end.
Shared behaviour
- Keyboard and focus. Activate the opener with Enter. Tab through the panel and dismiss it with its close action or Escape.
- Screen readers. Read the heading, owner and last edit inside the panel. After dismissal, check where focus returns.
- Direction and type. The panel opens from the reading end by default. Try the phone width with larger text to see how much room the details take.