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