ExpressivePreview constructor

const ExpressivePreview({
  1. required Widget child,
  2. PreviewPlatform platform = PreviewPlatform.android,
  3. Brightness brightness = Brightness.light,
  4. ExpressiveThemeData? light,
  5. ExpressiveThemeData? dark,
  6. RoutePresentation presentation = RoutePresentation.root,
  7. bool drawer = false,
  8. Widget? under,
  9. bool device = false,
  10. bool systemBars = true,
  11. ExpressiveNavigationMode navigationMode = ExpressiveNavigationMode.gesture,
  12. DateTime? clock,
  13. Key? key,
})

A preview of child in the given platform and brightness.

Implementation

const ExpressivePreview({
  required this.child,
  this.platform = PreviewPlatform.android,
  this.brightness = Brightness.light,
  this.light,
  this.dark,
  this.presentation = RoutePresentation.root,
  this.drawer = false,
  this.under,
  this.device = false,
  this.systemBars = true,
  this.navigationMode = ExpressiveNavigationMode.gesture,
  this.clock,
  super.key,
});