shamsi_date 0.1.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 85

Jalali (Shamsi) and Georgian date conversion library for Flutter and Dart #

Converted from Javascript library hosted on: jalaali-js

Usage #

Add it to your pubspec.yaml file:

dependencies:
    shamsi_date: ^0.1.1

Import and use it:

import 'package:shamsi_date/shamsi_date.dart';

main() {
  final g1 = Gregorian(year: 2013, month: 1, day: 10);
  final j1 = g1.toJalali();
  print('$g1 is $j1');

  final j2 = Jalali(year: 1391, month: 10, day: 21);
  final g2 = j1.toGregorian();
  print('$j2 is $g2');
}

0.1.0 #

  • Initial version

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  shamsi_date: ^0.1.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:shamsi_date/shamsi_date.dart';
  
Version Uploaded Documentation Archive
0.5.5 May 5, 2019 Go to the documentation of shamsi_date 0.5.5 Download shamsi_date 0.5.5 archive
0.5.4 May 3, 2019 Go to the documentation of shamsi_date 0.5.4 Download shamsi_date 0.5.4 archive
0.5.3 May 1, 2019 Go to the documentation of shamsi_date 0.5.3 Download shamsi_date 0.5.3 archive
0.5.2 Mar 24, 2019 Go to the documentation of shamsi_date 0.5.2 Download shamsi_date 0.5.2 archive
0.5.1 Feb 21, 2019 Go to the documentation of shamsi_date 0.5.1 Download shamsi_date 0.5.1 archive
0.5.0 Feb 10, 2019 Go to the documentation of shamsi_date 0.5.0 Download shamsi_date 0.5.0 archive
0.4.3 Feb 2, 2019 Go to the documentation of shamsi_date 0.4.3 Download shamsi_date 0.4.3 archive
0.4.2 Jan 24, 2019 Go to the documentation of shamsi_date 0.4.2 Download shamsi_date 0.4.2 archive
0.4.1 Jan 14, 2019 Go to the documentation of shamsi_date 0.4.1 Download shamsi_date 0.4.1 archive
0.3.1 Jan 9, 2019 Go to the documentation of shamsi_date 0.3.1 Download shamsi_date 0.3.1 archive

All 16 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
77
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
82
Overall:
Weighted score of the above. [more]
85
Learn more about scoring.

We analyzed this package on May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.0
  • pana: 0.12.15
  • Flutter: 1.5.8

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and shamsi_date.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

The package description is too short. (-8 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test