FlutterFolderViewTheme<T>.light constructor

FlutterFolderViewTheme<T>.light()

Creates a light theme with sensible defaults

Implementation

factory FlutterFolderViewTheme.light() {
  return FlutterFolderViewTheme<T>(
    lineTheme: FolderViewLineTheme(
      lineColor: const Color(0xFF9E9E9E), // Grey 500
      lineWidth: 1.5,
      lineStyle: LineStyle.connector,
    ),
    scrollbarTheme: FolderViewScrollbarTheme(
      thumbColor: Colors.grey.shade600,
      trackColor: Colors.grey.shade200,
    ),
    folderTheme: FolderNodeTheme<T>(
      widget: Icon(Icons.folder, color: Colors.grey.shade700, size: 20),
      openWidget:
          Icon(Icons.folder_open, color: Colors.grey.shade700, size: 20),
      textStyle: const TextStyle(color: Colors.black87),
      hoverColor: Colors.grey.shade200,
      splashColor: Colors.blue.withValues(alpha: 0.3),
      highlightColor: Colors.blue.withValues(alpha: 0.1),
    ),
    parentTheme: ParentNodeTheme<T>(
      widget: Icon(Icons.account_tree, color: Colors.grey.shade700, size: 20),
      textStyle: const TextStyle(color: Colors.black87),
      hoverColor: Colors.grey.shade200,
      splashColor: Colors.blue.withValues(alpha: 0.3),
      highlightColor: Colors.blue.withValues(alpha: 0.1),
    ),
    childTheme: ChildNodeTheme<T>(
      widget: Icon(Icons.insert_drive_file,
          color: Colors.grey.shade700, size: 20),
      textStyle: const TextStyle(color: Colors.black87),
      selectedTextStyle: const TextStyle(fontWeight: FontWeight.bold),
      selectedBackgroundColor: Colors.blue.shade50,
      hoverColor: Colors.grey.shade200,
      splashColor: Colors.blue.withValues(alpha: 0.3),
      highlightColor: Colors.blue.withValues(alpha: 0.1),
    ),
    expandIconTheme: ExpandIconTheme(
      widget:
          Icon(Icons.chevron_right, color: Colors.grey.shade700, size: 20),
    ),
    spacingTheme: const FolderViewSpacingTheme(),
  );
}