mmdate 1.0.22

  • Readme
  • Changelog
  • Example
  • Installing
  • 47

A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:mmdate/mmdate.dart';

main() {
  MMDate mmdate = new MMDate();

get MM-date

Sting mmdate =;
//  နမှုနာ "  ၁၃၈၁ : ပြာသို : လဆုတ် ၄ ရက် : တနင်္လာ "

get year

String mmyear = mmdate.year;
// နမှုနာ "၁၃၈၁"

get month

get day

get date

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Algorithm, Program and Calculation of Myanmar Date #

Credit.. #

yan9a :

Website 1 :

1.0.21 #

  • Initial version, created by Stagehand


import 'package:flutter/material.dart';
import '../lib/src/mmdate.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    MMDate mmdate = MMDate();
    String year = mmdate.year();
    String date =;
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        body: Center(
          child: Container(
            child: Column(
              children: <Widget>[
                Text('Myanar $year'),
                Text('Myanar $date'),

Use this package as a library

1. Depend on it

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

  mmdate: ^1.0.22

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:mmdate/mmdate.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 9, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

because of import path [mmdate] that is in a package requiring null.

Health issues and suggestions

Document public APIs. (-1 points)

5 out of 5 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/mmdate.dart. (-1.49 points)

Analysis of lib/src/mmdate.dart reported 3 hints:

line 10 col 7: The value of the field '_lm' isn't used.

line 60 col 3: The declaration '_tgmmdaystart' isn't referenced.

line 74 col 3: The declaration '_extraday' isn't referenced.

Maintenance suggestions

The package description is too short. (-10 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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.1
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies