Code: Select all
Get Locale: String myLocale = await findSystemLocale()
Define Numberformat: myNumberFormat = NumberFormat("##0.00", myLocale);
Read: numberFormat.parse(value.text).toDouble()
Show: numberFormat.format(item.price)
Code: Select all
Invalid depfile: /home/User/Repositories/Cashier/.dart_tool/flutter_build/19fc9eb7bd361f82815989439418e9d9/kernel_snapshot_program.d
ERROR: ../../.pub-cache/hosted/pub.dev/intl-0.20.2/lib/src/web.dart:9:8: Error: Dart library 'dart:js_interop' is not available on this platform.
web.dart:9
ERROR: import 'dart:js_interop';
ERROR: ^
ERROR: Context: The unavailable library 'dart:js_interop' is imported through these packages:
ERROR: package:calculator => package:intl => dart:js_interop
ERROR: Detailed import paths for (some of) the these imports:
ERROR: package:calculator/main.dart => package:intl/intl_browser.dart => package:intl/src/web.dart => dart:js_interop
(a lot more lines)
ERROR: Unhandled exception:
ERROR: Target kernel_snapshot_program failed: Exception
Error: Build process failed
Mobile version