fadhly-permata / flutter_money_formatter

"FlutterMoneyFormatter" is a Flutter extension to formatting various types of currencies according to the characteristics you like, without having to be tied to any localization.
https://pub.dartlang.org/packages/flutter_money_formatter
Other
85 stars 106 forks source link

Update intl #29

Open marcosradix opened 4 years ago

marcosradix commented 4 years ago

Please update the version of intl in pub to intl 0.16.1 or higher!

carlosfiori commented 3 years ago

+1

murilosamuel commented 3 years ago

+1

Tabarek commented 3 years ago

+1

worldofsites commented 3 years ago

+1

fadhly-permata commented 3 years ago

Hi, sorry for leaving this project for a long time. I will update this package next week.

mmuttaqin commented 3 years ago

still don't have the update :)

sweetysmilez commented 3 years ago

waiting for an update

pppshiwen commented 3 years ago

waiting for an update

carlosfiori commented 3 years ago

still don't have the update :)

Prn-Ice commented 3 years ago

Any temporary fix?

nfortiz commented 3 years ago

2/02/2021 no updates I have problems installing some firebase packages :c due to intl version. Please update this awesome package!

Chappie74 commented 3 years ago

Please update

worldofsites commented 3 years ago

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
nfortiz commented 3 years ago

what if i fork the repo, or someone else, and publish the package with the updates?

Chappie74 commented 3 years ago

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.

nfortiz commented 3 years ago

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 .
}
tobyarevalo commented 3 years ago

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