Fluent2Preview constructor

const Fluent2Preview({
  1. required Widget child,
  2. Fluent2ThemeData? light,
  3. Fluent2ThemeData? darkData,
  4. Fluent2Presentation presentation = Fluent2Presentation.root,
  5. List<Fluent2NavItem> tabs = const <Fluent2NavItem>[],
  6. int selectedIndex = 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 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,
});