9551eceaed
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.
31 lines
772 B
Dart
31 lines
772 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../../ui/adaptive/segmented_bar.dart';
|
|
|
|
/// The viewer's page structure: its [SegmentedBar] (the platform's Back, or
|
|
/// Close on the full-screen route) over [body].
|
|
class ArtifactViewerScaffold extends StatelessWidget {
|
|
const ArtifactViewerScaffold({
|
|
super.key,
|
|
required this.title,
|
|
required this.subtitle,
|
|
required this.actions,
|
|
required this.body,
|
|
});
|
|
|
|
final String title;
|
|
final String? subtitle;
|
|
final List<Widget> actions;
|
|
final Widget body;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final bar = SegmentedBar(
|
|
title: title,
|
|
subtitle: subtitle,
|
|
actions: actions,
|
|
);
|
|
return Scaffold(extendBodyBehindAppBar: true, appBar: bar, body: body);
|
|
}
|
|
}
|