LedgerPreview constructor

const LedgerPreview({
  1. required Widget child,
  2. LedgerThemeData? light,
  3. LedgerThemeData? dark,
  4. LedgerPresentation presentation = LedgerPresentation.root,
  5. List<LedgerNavItem> tabs = const <LedgerNavItem>[],
  6. int activeIndex = 0,
  7. ShellAction? action,
  8. String? brand,
  9. bool drawer = false,
  10. bool fullScreen = false,
  11. bool back = false,
  12. PreviewPlatform platform = PreviewPlatform.android,
  13. Brightness brightness = Brightness.light,
  14. bool device = false,
  15. String? location,
  16. 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,
});