import "package:intl/intl.dart"; extension MoneyDouble on double { /// double 显示金额格式 String get moneyFormat { NumberFormat format = new NumberFormat("0.00"); return format.format(this); } }