Files
alan edc503b228 Remove Cupertino changes branches
Keep the Material-only changes feature while preserving public Cupertino parameters for callers. Remove Cupertino-only widgets, imports, hosts, and tests because the app never reaches that path.
2026-11-11 16:22:09 +00:00

34 lines
933 B
Dart

import 'package:flutter/material.dart';
/// The recorded raw patch bytes, one recorded line per line, in a selectable
/// body.
///
/// The text keeps its intrinsic line width, so long lines scroll sideways
/// instead of wrapping a continuation under a new line.
class RawPatchView extends StatelessWidget {
const RawPatchView({super.key, required this.patch, required this.style});
final String patch;
final TextStyle style;
@override
Widget build(BuildContext context) {
return SingleChildScrollView(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: ExcludeSemantics(
child: SelectionArea(
child: Text(
patch,
style: style,
softWrap: false,
overflow: TextOverflow.visible,
),
),
),
),
);
}
}