Flutter Inline Calendar Widget

  Calendar, Widgets

inline_calender

An inline calender package inspired by outlook app. It also supports Jalali/Shamsi calender.

Uses theme and locale of context to localize and change color of widgets.

Usage

Add the module to your project pubspec.yaml then install it using “flutter packages get`

...
dependencies:
 ...
 inline_calender: ^0.1.0
...

Example:

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: Text('Inline Calender'),
          bottom: InlineCalender(
            pickedDate: DateTime.now(),
            middleDate: DateTime.now(),
            onChange: (DateTime date) => print(date),
            isShamsi: false,
            height: 100,
            maxWeeks: 12,
            coloredDateTimes: {
              DateTime.now().add(Duration(days: 2)): Colors.blue,
              DateTime.now().subtract(Duration(days: 7)): Colors.red,
            },
          ),
        ),
      ),
    );
  }
}

Download Flutter Inline Calendar source code on GitHub

https://github.com/omidh28/flutter_inline_calender