YaruMasterDetailPage constructor
const
YaruMasterDetailPage({
- Key? key,
- required List<
YaruPageItem> pageItems, - IconData? previousIconData,
- required double leftPaneWidth,
- PreferredSizeWidget? appBar,
Creates a basic responsive layout with yaru theme,
renders layout based on width
constrain.
- if
constraints.maxWidth
< 620 the widget will renderYaruPotraitLayout
- if
constraints.maxWidth
> 620 widget will renderYaruLandscapeLayout
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);