Complete Material-only APIs and fixtures
Remove obsolete control-family flags and icon metadata across all callers, dead alternate themes and host helpers, obsolete test setup, and the unused icon-font dependency. Preserve native Material Back transitions. Make navigation fixtures independent of update plugins and answer auxiliary shell snapshots so the complete application suite can run deterministically.
This commit is contained in:
@@ -152,7 +152,7 @@ class _ArtifactThumbnailState extends State<ArtifactThumbnail>
|
||||
Widget build(BuildContext context) {
|
||||
super.build(context);
|
||||
final icon = Icon(
|
||||
artifactKindIcon(widget.artifact, cupertino: false),
|
||||
artifactKindIcon(widget.artifact),
|
||||
size: widget.iconSize,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
);
|
||||
@@ -191,9 +191,8 @@ class _ArtifactThumbnailState extends State<ArtifactThumbnail>
|
||||
|
||||
/// The icon for an artifact's kind of file, when it has no thumbnail.
|
||||
///
|
||||
/// [cupertino] is retained for callers that still pass it; the icon is always
|
||||
/// the Material glyph the app draws.
|
||||
IconData artifactKindIcon(ArtifactRecord artifact, {required bool cupertino}) {
|
||||
/// The Material glyph the app draws for this file kind.
|
||||
IconData artifactKindIcon(ArtifactRecord artifact) {
|
||||
final name = artifact.name.toLowerCase();
|
||||
final format = artifactPreviewFormat(artifact.contentType, artifact.name);
|
||||
if (name.endsWith('.zip') || name.endsWith('.tar') || name.endsWith('.gz')) {
|
||||
|
||||
Reference in New Issue
Block a user