How to add custom Strikethrough to Text Widget in Flutter
问题 I am looking for a way to add a custom strikethrough to a text widget like below I looked at the Text Style API, but couldn't find any option to customize the Strikethrough graphic. style: TextStyle(decoration: TextDecoration.lineThrough), 回答1: as an option import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: Center( child: StrikeThroughWidget(