“mata uang intl flutter” Kode Jawaban

mata uang intl flutter

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
}
Faithful Frog

Flutter mendapatkan mata uang lokal

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
}
Faithful Frog

Jawaban yang mirip dengan “mata uang intl flutter”

Pertanyaan yang mirip dengan “mata uang intl flutter”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya