there is a simple TextField and I want to give it TextDirection the problem is that it i encounter the error i said
TextField(
textDirection: TextDirection.RTL,
)
The problem was that the easy_localization package won't allow to use rtl in text direction.
I used it by importing tha package and adding its alias
import 'package:easy_localization/easy_localization.dart' as localized;
localized.TextDirection.rtl
Instead of importing the other package just add this import:
import 'dart:ui' as ui;
And edit your code this way:
textDirection: ui.TextDirection.rtl
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