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:
@@ -30,12 +30,9 @@ class ArtifactFullscreenScope extends InheritedWidget {
|
||||
/// the shell's bars and list pane. A full-screen dialog route: its bar shows
|
||||
/// the platform's Close, and the system back gesture leaves it.
|
||||
///
|
||||
/// [cupertino] is retained for callers that still pass it; the route is always
|
||||
/// the Material one.
|
||||
Route<void> artifactFullscreenRoute({
|
||||
bool? cupertino,
|
||||
required WidgetBuilder builder,
|
||||
}) => MaterialPageRoute<void>(fullscreenDialog: true, builder: builder);
|
||||
/// Uses the native Material fullscreen route.
|
||||
Route<void> artifactFullscreenRoute({required WidgetBuilder builder}) =>
|
||||
MaterialPageRoute<void>(fullscreenDialog: true, builder: builder);
|
||||
|
||||
/// The zoom factors Zoom in and Zoom out step through.
|
||||
const List<double> artifactHtmlZoomSteps = [
|
||||
|
||||
@@ -41,7 +41,6 @@ mixin ArtifactFullscreenHost<T extends StatefulWidget> on State<T> {
|
||||
if (_fullscreen != null) return;
|
||||
htmlZoom.value = 1;
|
||||
final route = artifactFullscreenRoute(
|
||||
cupertino: false,
|
||||
builder: (_) => ArtifactFullscreenScope(
|
||||
htmlZoom: htmlZoom,
|
||||
child: ListenableBuilder(
|
||||
|
||||
@@ -562,7 +562,6 @@ class _ArtifactGalleryPageState extends State<ArtifactGalleryPage> {
|
||||
return Scaffold(
|
||||
extendBodyBehindAppBar: true,
|
||||
appBar: SegmentedBar(
|
||||
cupertino: false,
|
||||
title: artifactGalleryTitle,
|
||||
actions: [_debugToggle(context)],
|
||||
),
|
||||
|
||||
@@ -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')) {
|
||||
|
||||
@@ -59,7 +59,7 @@ class ArtifactViewerBar extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final actions = _actions(resolved, onFullscreen);
|
||||
final pagerMin = count > 1 ? 2 * GlassBarMetrics.controlExtent(false) : 0.0;
|
||||
final pagerMin = count > 1 ? 2 * GlassBarMetrics.controlExtent() : 0.0;
|
||||
final pager = ChevronPager(
|
||||
index: index,
|
||||
count: count,
|
||||
@@ -82,7 +82,6 @@ class ArtifactViewerBar extends StatelessWidget {
|
||||
alignment: AlignmentDirectional.centerStart,
|
||||
heightFactor: 1,
|
||||
child: GlassControlBar(
|
||||
cupertino: false,
|
||||
child: LayoutBuilder(
|
||||
builder: (context, constraints) => Row(
|
||||
key: const Key('artifact-viewer-actions'),
|
||||
|
||||
@@ -21,7 +21,6 @@ class ArtifactViewerScaffold extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final bar = SegmentedBar(
|
||||
cupertino: false,
|
||||
title: title,
|
||||
subtitle: subtitle,
|
||||
actions: actions,
|
||||
|
||||
Reference in New Issue
Block a user