inline_calender 0.2.0 copy "inline_calender: ^0.2.0" to clipboard
inline_calender: ^0.2.0 copied to clipboard

discontinuedreplaced by: inline_calendar
outdated

A new Flutter package project.

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.2.0
...

Example:

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

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

class MyApp extends StatelessWidget {
  DateTime _pickedDate = DateTime.now();
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: Text('Inline Calender'),
          bottom: InlineCalender(
            locale: Locale('en_US'),
            pickedDate: _pickedDate,
            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,
            },
          ),
        ),
      ),
    );
  }
}
6
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

carousel_extended, flutter, intl, provider, shamsi_date

More

Packages that depend on inline_calender