79509564

Date: 2025-03-14 15:52:30
Score: 2.5
Natty:
Report link

Maybe a stacked widget like this?

enter image description here

Row(
  mainAxisAlignment: MainAxisAlignment.center,
  crossAxisAlignment: CrossAxisAlignment.end,
  children: [
    Text('this '),
    CaretLetter('7'),
    Text(' is custom'),
  ],
),
class CaretLetter extends StatelessWidget {
  final String s;
  const CaretLetter(this.s, {super.key});

  @override
  Widget build(BuildContext context) {
    return Stack(
      alignment: AlignmentDirectional.topCenter,
      children: [
        Text('\u0302'),
        Padding(padding: const EdgeInsets.fromLTRB(0, 4, 0, 0), child: Text(s)),
      ],
    );
  }
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: rodeomacon