relative_time 5.0.0 copy "relative_time: ^5.0.0" to clipboard
relative_time: ^5.0.0 copied to clipboard

Expresses a DateTime object relative to the current time in text form.

5.0.0 #

  • BREAKING: Remove Quechua language.
  • Add Betawi, Interlingue Occidental and Maori languages.
  • Update Basque, Hindi (Latin script), Nepali, Swedish and Syriac translations.

4.0.1 #

  • Fix time erroneously being displayed as null under specific condition.

4.0.0 #

  • BREAKING: Use appropriate numbering systems instead of always using Western digits. This affects the following languages:
    • Fulah (Adlam digits)
    • Arabic and Sindhi (Arabic-Indic digits)
    • Persian, Mazanderani, Pashto and Urdu (as used in India) (Extended Arabic-Indic digits)
    • Assamese and Bangla (Bangla digits)
    • Chakma (Chakma digits)
    • Marathi and Nepali (Devanagari digits)
    • Burmese (Myanmar digits)
    • Dzongkha (Tibetan digits)

3.2.0 #

  • Add Latin, Ligurian, Rohingya, Syriac, Silesian and Torwali languages.
  • Add Arabic script to Malay language.

3.1.0 #

  • Improve API documentation.
  • Reduce size a bit by eliminating redundant entries.
  • Bump minimal Dart SDK to 2.19.
  • Relax intl constraint.
  • Modernize example app.

3.0.0 #

  • BREAKING: Remove support for quarters. It is not commonly used and prevented support for several languages.
  • Add Dzongkha, Friulian, Kalaallisut Greenlandic, Lakota, Uyghur and Walser languages.
  • Use Adlam script as base variant of the Fulah language.

2.2.1 #

  • Reduce size a bit by eliminating redundant entries.

2.2.0 #

  • Add Bodo and Maithili languages.
  • Update Lower Sorbian, Esperanto, Persian, Filipino, Irish, Hindi, Macedonian, Maltese, Oriya and Serbian (as used in Bosnia and Herzegovina) translations.

2.1.0 #

  • Determine localization in constructor rather than on format call.

2.0.1 #

  • Fix error in README.

2.0.0 #

  • BREAKING: Introduce separate constructors and extension methods for context and locale based initialization. Prevents potential runtime errors caused by omitting both context and locale parameters.

1.2.1 #

  • Fix syntax error in README.

1.2.0 #

  • Prefer natural language over numeric values by default. For instance, 'tomorrow' is used instead of the previous 'in 1 day'.
  • Add numeric flag to prefer numeric values over natural language.

1.1.0 #

  • Add Esperanto, Luxembourgish and Mazanderani languages.
  • Add zero counts for most time units. For instance, if the most granular specified time unit is hours, a difference of less than one hour will be represented as 'this hour' rather than the previous 'now'.

1.0.1 #

  • Fix static analysis issues.

1.0.0 #

  • Initial version.
14
likes
140
pub points
89%
popularity
screenshot

Publisher

verified publisherviter.nl

Expresses a DateTime object relative to the current time in text form.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

clock, flutter, flutter_localizations, intl

More

Packages that depend on relative_time