Fluent2Preview constructor
const
Fluent2Preview({
- required Widget child,
- Fluent2ThemeData? light,
- Fluent2ThemeData? darkData,
- Fluent2Presentation presentation = Fluent2Presentation.root,
- List<
Fluent2NavItem> tabs = const <Fluent2NavItem>[], - int selectedIndex = 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 as a page of an app.
Implementation
const Fluent2Preview({
required this.child,
this.light,
this.darkData,
this.presentation = Fluent2Presentation.root,
this.tabs = const <Fluent2NavItem>[],
this.selectedIndex = 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,
});