widgets/pod/file_type_helpers library
Helper functions for file type detection, icons, and descriptions.
Copyright (C) 2025, Software Innovation Institute, ANU.
Licensed under the GNU General Public License, Version 3 (the "License").
License: https://opensource.org/license/gpl-3-0.
Functions
-
getFileIcon(
PodFileItem item) → IconData - Returns the appropriate icon for a file item based on its type and extension.
-
getFileIconBackgroundColor(
BuildContext context, PodFileItem item) → Color - Returns the background color for the file icon.
-
getFileIconColor(
BuildContext context, PodFileItem item) → Color - Returns the icon color for a file item based on its type.
-
getFileTypeDescription(
PodFileItem item) → String - Returns a human-readable type description for a file item.