Files
pipelines/app/lib/features/artifacts/ui/artifact_viewer_scaffold.dart
T
alan f46b82e207 Remove Cupertino branches from artifact features
Keep the Material implementation while preserving public parameters needed by callers. Remove Cupertino-only tests and variants because the app runs exclusively under MaterialApp.
2026-11-11 04:36:57 +00:00

32 lines
796 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(
cupertino: false,
title: title,
subtitle: subtitle,
actions: actions,
);
return Scaffold(extendBodyBehindAppBar: true, appBar: bar, body: body);
}
}