vendredi 22 janvier 2021

Flutter Web Persian/Arabic Strings Not Showing Properly on the UI

I just started to migrate to Flutter web and just at the start point, encountered this strange problem. When using Persian/Arabic Characters in code, it would be shown improperly on the UI. Other Characters are shown nice.

Flutter Default Sample App

Code:

 children: <Widget>[
            Text(
              'You have pressed the button this many times:',
              style: Theme.of(context).textTheme.headline4,
            ),
            Text(
              'شما این دکمه را این تعداد بار فشار داده اید:',
              style: Theme.of(context).textTheme.headline4,
            ),
            Text(
              'ñĚĖĎÆß',
              style: Theme.of(context).textTheme.headline4,
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ], 

Result: enter image description here




Aucun commentaire:

Enregistrer un commentaire