Something went wrong. Try again.
Build Flutter apps with Cubit, MVVM-style views, and presenter-driven navigation—while adapting the UI to your app's design language.
Something went wrong. Try again.
123456789101112131415161718192021222324import 'package:example/example.dart';
/// Horizontally scrollable monospaced text, e.g. the route tree.class CodeBlock extends StatelessWidget { const CodeBlock({super.key, required this.code});
final String code;
@override Widget build(BuildContext context) { return AppCard( child: SingleChildScrollView( scrollDirection: Axis.horizontal, child: Text( code, style: context.todoTheme.code.copyWith( color: AppText.of(context, AppTextStyle.body).color, ), ), ), ); }}