flutter_money_formatter
flutter_money_formatter copied to clipboard
Update intl
Please update the version of intl in pub to intl 0.16.1 or higher!
+1
+1
+1
+1
Hi, sorry for leaving this project for a long time. I will update this package next week.
still don't have the update :)
waiting for an update
waiting for an update
still don't have the update :)
Any temporary fix?
2/02/2021 no updates I have problems installing some firebase packages :c due to intl version. Please update this awesome package!
Please update
my workaround:
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_money_formatter:
git:
url: git://github.com/anisalibegic/flutter_money_formatter.git
dependency_overrides:
intl: ^0.17.0-nullsafety.2
what if i fork the repo, or someone else, and publish the package with the updates?
what if i fork the repo, or someone else, and publish the package with the updates?
yes please do that. Leave the package name here.
FYI I implement this functionality, because i just need one currency
I just removed the package from pubspec, and add intl: ^0.16.1
and wrote this code
import 'package:intl/intl.dart';
String formattMoney(double amount, { String symbol = '\$'}) {
return NumberFormat
.currency(symbol: symbol, locale: 'en_ES', decimalDigits: 0)
.format(amount)
.replaceAll(',', '.'); /// format split the number by , i just replaced with .
}
I found this solution: In pubspect.yaml aim directly to the GIT of the project, like this:
flutter_money_formatter: git: url: git://github.com/anisalibegic/flutter_money_formatter.git