LedgerPreview constructor
const
LedgerPreview({
- required Widget child,
- LedgerThemeData? light,
- LedgerThemeData? dark,
- LedgerPresentation presentation = LedgerPresentation.root,
- List<
LedgerNavItem> tabs = const <LedgerNavItem>[], - int activeIndex = 0,
- ShellAction? action,
- String? brand,
- bool drawer = false,
- bool fullScreen = false,
- bool back = false,
- PreviewPlatform platform = PreviewPlatform.android,
- Brightness brightness = Brightness.light,
- bool device = false,
- String? location,
- Key? key,
A preview of child, standing as presentation says.
Implementation
const LedgerPreview({
required this.child,
this.light,
this.dark,
this.presentation = LedgerPresentation.root,
this.tabs = const <LedgerNavItem>[],
this.activeIndex = 0,
this.action,
this.brand,
this.drawer = false,
this.fullScreen = false,
this.back = false,
this.platform = PreviewPlatform.android,
this.brightness = Brightness.light,
this.device = false,
this.location,
super.key,
});