String xml file in Flutter

后端 未结 7 1994
难免孤独
难免孤独 2021-02-01 15:18

In flutter string text are directly set to the TextField widget like:

new Text(\'Hello,  How are you?\')

Is correct way ? or we ca

7条回答
  •  被撕碎了的回忆
    2021-02-01 15:31

    You can use the methods represented in the internationalization sections of the documentation to control both centralized string management and translations (if you need translations)

    https://flutter.io/tutorials/internationalization/

    It might be overkill for a simple app with only a few strings though.

提交回复
热议问题