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 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); } }