Skip to content

a01m01s/persian_calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

persian_calendar

A Flutter package for persian dates and calendar

Installation

First, add persian_calendar as a [dependency in your pubspec.yaml file]

Example

import 'package:flutter/material.dart';
import 'package:persian_calendar/persian_calendar.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "Calendar",
      home: CalendarPage(),
    );
  }
}

class CalendarPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        backgroundColor: Colors.transparent,
        elevation: 0.0,
        leading: Icon(Icons.arrow_back),
      ),
      body: Container(
        child: PersianCalendar(
          startingYear: 1398,
          startingMonth: 1,
          endingYear: 1400,
          endingMonth: 5,
        ),
      ),
    );
  }
}

About

A Flutter package for persian dates and calendar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published