How to check if Flutter Text widget was overflowed
I found a way to do it. Full code below, but in short: Use a LayoutBuilder to determine how much space we have. Use a TextPainter to simulate the render of the text within the space. Here’s the full demo app: import ‘package:flutter/material.dart’; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext … Read more