Questions tagged [flutter-intl]

Flutter Intl Contains code to deal with internationalized/localized messages, date and number formatting and parsing, bi-directional text, and other internationalization issues.

The most important library is intl. It defines the Intl class, with the default locale and methods for accessing most of the internationalization mechanisms. This library also defines the DateFormat, NumberFormat, and BidiFormatter classes.

Package Source

Package Link (pub.dev)

Repository (GitHub)

51 questions
0
votes
1 answer

not able to solve number format in currency?

i have tried NumberFormat "#,##0.##" i have tried NumberFormat "#,##0.00" i have tried NumberFormat "#,##0.#0" the format i want is (123,4567.89) import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import…
user14473358
0
votes
1 answer

How can I give string to translate?

I am using key - value translation-S.of(context).translation_key- but I need something like "Translation string".translate() or translate("Translation string") How can I do this ? I am using localizely plugin. Flutter version is lastest. Attention:…
0
votes
2 answers

how to use localized strings in flutter's main app

I am new to Flutter and I am building a localized app using the flutter-intl plugin. I've declared a "Title" string in the .arb file for my locales. My program is trying to use this string as follows: Widget build(BuildContext context) { …
inq
  • 183
  • 1
  • 3
  • 10
0
votes
1 answer

Flutter: intl, time

I'm trying to convert the date time using the intl package, but the hour that it gives me back is always 8, while here is 10 (I live in Germany). Here's the code: String test(){ var now = new DateTime.now(); var formatter = new…
Little Monkey
  • 5,395
  • 14
  • 45
  • 83
-1
votes
2 answers

Is there any method in flutter with INTL package to convert this date format in DD-MM-YYYY

I am developing a flutter news app. The format of date from Api response is ( 2021-02-05T09:41:13+0000 ) and I want to convert it to DD-MM-YYYY format. Can anybody help me with this?
-2
votes
3 answers

Why flutter give an error 'Undefined name DateFormat"?

How can I fix it? Please don't say import intl.dart as you can see at the second photo I already add it.
onurkaygn
  • 1
  • 4
1 2 3
4