When using ListTile in Material widget, the flutter app is stuck on error saying "Failed assertion: line 507 pos 15 'textDirection != null' assert is not true". But the ListItem widget does not have any property as textDirection. How do I solve this?


I saw the error, it happens when you don't have a MaterialApp or CupertinoApp as initial Widget, I suggest you to create a new project and see how Flutter creates the Widgets.
To fix your issue :
return MaterialApp(
home: Material(
child: ListTile(
...
),
),
),
textDirection is not required
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With