All Projects → BaderEddineOuaich → time_ago_provider

BaderEddineOuaich / time_ago_provider

Licence: MIT license
library for generating fuzzy timestamp for example ("9 minutes ago")

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to time ago provider

flutter ume
UME is an in-app debug kits platform for Flutter. Produced by Flutter Infra team of ByteDance
Stars: ✭ 1,792 (+11100%)
Mutual labels:  flutter-package
syntax highlighter
Syntax Highlighter for Dart/Flutter Code
Stars: ✭ 28 (+75%)
Mutual labels:  flutter-package
svelte-time
Format a timestamp using day.js
Stars: ✭ 70 (+337.5%)
Mutual labels:  timestamp
alphabet scroll view
A Scrollable ListView Widget with the dynamic vertical Alphabet List on the Side which you can drag and tap to scroll to the first item starting with that letter in the list.
Stars: ✭ 21 (+31.25%)
Mutual labels:  flutter-package
barcode.flutter
barcode generate library for Flutter
Stars: ✭ 58 (+262.5%)
Mutual labels:  flutter-package
bloc
A predictable state management library that helps implement the BLoC design pattern
Stars: ✭ 12 (-25%)
Mutual labels:  flutter-package
very good infinite list
A Very Good Infinite List Widget created by Very Good Ventures. Great for activity feeds, news feeds, and more. 🦄
Stars: ✭ 109 (+581.25%)
Mutual labels:  flutter-package
seo renderer
A Flutter Web Plugin to display Text Widget as Html for SEO purpose
Stars: ✭ 103 (+543.75%)
Mutual labels:  flutter-package
flutter paging
A small library support load infinite for ListView - GridView on Flutter.
Stars: ✭ 32 (+100%)
Mutual labels:  flutter-package
flutter syntax view
Flutter Syntax Highlighter
Stars: ✭ 88 (+450%)
Mutual labels:  flutter-package
glass kit
💎 A package containing widgets to implement glass morphism in flutter apps
Stars: ✭ 50 (+212.5%)
Mutual labels:  flutter-package
dgraph
Dgraph Dart client which communicates with the server using gRPC.
Stars: ✭ 27 (+68.75%)
Mutual labels:  flutter-package
getwidget-docs
Get Widgets UI library docs.
Stars: ✭ 17 (+6.25%)
Mutual labels:  flutter-package
ngx-timeago
⏰ Live updating timestamps in Angular 6+
Stars: ✭ 70 (+337.5%)
Mutual labels:  timestamp
flutter-app
Full Feature Todos Flutter Mobile app with fireStore integration.
Stars: ✭ 138 (+762.5%)
Mutual labels:  flutter-package
time decode
A timestamp and date decoder written for python 3
Stars: ✭ 24 (+50%)
Mutual labels:  timestamp
stop watch timer
This is Stop Watch Timer for flutter plugin.🏃‍♂️
Stars: ✭ 76 (+375%)
Mutual labels:  flutter-package
loadany
Flutter load more package , support ListView、GridView、Slivers
Stars: ✭ 25 (+56.25%)
Mutual labels:  flutter-package
advance image picker
Flutter plugin for selecting multiple images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotating, cropping, adding sticker/filters.
Stars: ✭ 91 (+468.75%)
Mutual labels:  flutter-package
flutter auth buttons
Auth Buttons is a flutter widget library, include buttons for authenticating with the most popular social networks.
Stars: ✭ 23 (+43.75%)
Mutual labels:  flutter-package

time_ago_provider

library for generating fuzzy timestamp e.g("9 minutes ago")

pub package Github test

import 'package:time_ago_provider/time_ago_provider.dart' as timeAgo;

void main() {
  /// Default Format (summary of elapsed time)
  final nineMinutesElapsed = DateTime.now().subtract(Duration(minutes: 9));
  print(timeAgo.format(nineMinutesElapsed)); // 9 minutes ago
  print(timeAgo.format(nineMinutesElapsed, locale: 'en_short')); // 9 min

  /// Full Format (detailed elapsed time years, months, days...)
  final longTimeElapsed = DateTime.now().subtract(Duration(days: 999, hours: 6, minutes: 8, seconds: 3));
  print(timeAgo.formatFull(longTimeElapsed)); // 2 years, 9 months, 9 days, 6 hours, 8 minutes, 3 seconds
  print(timeAgo.formatFull(longTimeElapsed, locale: 'en_short')); // 2 yr, 9 mo, 9 d, 6 h, 8 min, 3 sec

  /// Adding new locales
  timeAgo.setLocale('de', timeAgo.German());
  timeAgo.setLocale('de_short', timeAgo.German(shortForm: true));
  print(time_ago.format(nineMinutesElapsed, locale: 'de')); // vor 9 Minuten
  print(timeAgo.format(nineMinutesElapsed, locale: 'de_short')); // 9 Min.
}

Supported Languages

  • ENGLISH
  • GERMAN
  • POLISH
  • FRENCH
  • ARABIC
  • TURKISH
  • PORTUGUESE
  • ITALIAN
  • SWEDISH
  • NORWEGIAN
  • PERSIAN
  • SPANISH
  • More will be added

Installing

Package

Contributors

Thanks goes to these wonderful people!

Features and bugs

If you face any problems feel free to open an issue at the issue tracker. If you feel the library is missing a feature, please raise a ticket on Github. Pull request are also welcome.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].