FlutterFolderViewTheme<T>.dark constructor
FlutterFolderViewTheme<T>.dark ()
Creates a dark theme with sensible defaults
Implementation
factory FlutterFolderViewTheme.dark() {
return FlutterFolderViewTheme<T>(
lineTheme: FolderViewLineTheme(
lineColor: const Color(0xFF757575), // Grey 600
lineWidth: 1.5,
lineStyle: LineStyle.connector,
),
scrollbarTheme: FolderViewScrollbarTheme(
thumbColor: Colors.grey.shade400,
trackColor: Colors.grey.shade800,
),
folderTheme: FolderNodeTheme<T>(
widget: Icon(Icons.folder, color: Colors.grey.shade400, size: 20),
openWidget:
Icon(Icons.folder_open, color: Colors.grey.shade400, size: 20),
textStyle: const TextStyle(color: Colors.white70),
hoverColor: Colors.grey.shade800,
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.shade400, size: 20),
textStyle: const TextStyle(color: Colors.white70),
hoverColor: Colors.grey.shade800,
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.shade400, size: 20),
textStyle: const TextStyle(color: Colors.white70),
selectedTextStyle: const TextStyle(fontWeight: FontWeight.bold),
selectedBackgroundColor: Colors.blue.shade900.withValues(alpha: 0.3),
hoverColor: Colors.grey.shade800,
splashColor: Colors.blue.withValues(alpha: 0.3),
highlightColor: Colors.blue.withValues(alpha: 0.1),
),
expandIconTheme: ExpandIconTheme(
widget:
Icon(Icons.chevron_right, color: Colors.grey.shade400, size: 20),
),
spacingTheme: const FolderViewSpacingTheme(),
);
}