SoftUiSidebar.desktop constructor

SoftUiSidebar.desktop({
  1. List<SoftUiSidebarItem> items = const [],
  2. String isEmptyMessage = 'Não há itens.',
  3. bool isLoading = false,
  4. bool isCollapsed = false,
  5. Color color = Colors.transparent,
  6. int? selectedIndex,
  7. double? width,
  8. Widget? header,
  9. Widget? body,
  10. Widget? footer,
  11. void onOpenPressed()?,
})

Implementation

factory SoftUiSidebar.desktop({
  List<SoftUiSidebarItem> items = const [],
  String isEmptyMessage = 'Não há itens.',
  bool isLoading = false,
  bool isCollapsed = false,
  Color color = Colors.transparent,
  int? selectedIndex,
  double? width,
  Widget? header,
  Widget? body,
  Widget? footer,
  void Function()? onOpenPressed,
}) {
  return SoftUiSidebar(
    child: DesktopSidebar(
      items: items,
      isEmptyMessage: isEmptyMessage,
      isLoading: isLoading,
      isCollapsed: isCollapsed,
      color: color,
      selectedIndex: selectedIndex,
      width: width,
      onOpenPressed: onOpenPressed,
      header: header,
      body: body,
      footer: footer,
    ),
  );
}