ExpressivePreview constructor
const
ExpressivePreview({
- required Widget child,
- PreviewPlatform platform = PreviewPlatform.android,
- Brightness brightness = Brightness.light,
- ExpressiveThemeData? light,
- ExpressiveThemeData? dark,
- RoutePresentation presentation = RoutePresentation.root,
- bool drawer = false,
- Widget? under,
- bool device = false,
- bool systemBars = true,
- DateTime? clock,
- 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,
});