content: import 'package:flutter/cupertino.dart';
  
  class BackChevron extends StatelessWidget {
    const BackChevron({super.key});
  
    @override
    Widget build(BuildContext context) {
      final TextDirection textDirection = Directionality.of(context);
      final TextStyle textStyle = DefaultTextStyle.of(context).style;
  
      // Replicate the Icon logic here to get a tightly sized icon and add
      // custom non-square padding.
      Widget iconWidget = Padding(
        padding: const EdgeInsetsDirectional.only(start: 6, end: 2),
        child: Text.rich(
          TextSpan(
            text: String.fromCharCode(CupertinoIcons.back.codePoint),
            style: TextStyle(
              inherit: false,
              color: textStyle.color,
              fontSize: 25.0,
              fontFamily: CupertinoIcons.back.fontFamily,
              package: CupertinoIcons.back.fontPackage,
            ),
          ),
        ),
      );
      switch (textDirection) {
        case TextDirection.rtl:
          iconWidget = Transform(
            transform: Matrix4.identity()..scale(-1.0, 1.0, 1.0),
            alignment: Alignment.center,
            transformHitTests: false,
            child: iconWidget,
          );
          break;
        case TextDirection.ltr:
          break;
      }
  
      return iconWidget;
    }
  }
  