📌  相关文章
📜  颤振获取语言环境的货币 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:24.747000             🧑  作者: Mango

代码示例1
import 'package:intl/intl.dart';

void currency() {
    Locale locale = Localizations.localeOf(context);
    var format = NumberFormat.simpleCurrency(locale: locale.toString());
    print("CURRENCY SYMBOL ${format.currencySymbol}"); // $
    print("CURRENCY NAME ${format.currencyName}"); // USD
}