YaruMasterDetailPage constructor

const YaruMasterDetailPage({
  1. Key? key,
  2. required List<YaruPageItem> pageItems,
  3. IconData? previousIconData,
  4. required double leftPaneWidth,
  5. PreferredSizeWidget? appBar,
})

Creates a basic responsive layout with yaru theme, renders layout based on width constrain.

  • if constraints.maxWidth < 620 the widget will render YaruPotraitLayout
  • if constraints.maxWidth > 620 widget will render YaruLandscapeLayout

for example:

YaruMasterDetailPage(
      appBarHeight: 48,
      leftPaneWidth: 280,
      previousIconData: YaruIcons.go_previous,
     pageItems: pageItems,
    );

Implementation

const YaruMasterDetailPage({
  Key? key,
  required this.pageItems,
  this.previousIconData,
  required this.leftPaneWidth,
  this.appBar,
}) : super(key: key);