ad_bs_calendar 0.0.3 copy "ad_bs_calendar: ^0.0.3" to clipboard
ad_bs_calendar: ^0.0.3 copied to clipboard

outdated

A Plugin to build calendar widget that supports the date format in both AD and BS.

example/lib/main.dart

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

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

class App extends StatefulWidget {
  @override
  _AppState createState() => _AppState();
}

class _AppState extends State<App> {
  Format format = Format.AD;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: Text("CalendarDemo"),
          centerTitle: true,
        ),
        body: ADBSCalendar(
          events: [
            DateTime.parse('2019-09-23'),
            DateTime.parse('2019-09-12'),
            DateTime.parse('2019-10-12'),
          ],
          holidays: [
            DateTime.parse('2019-09-27'),
            DateTime.parse('2019-09-01'),
          ],
          format: format,
          onPreviousMonth: () {
            print("Previous");
          },
          onNextMonth: () {
            print("Next");
          },
        ),
      ),
    );
  }
}
0
likes
40
points
105
downloads

Publisher

unverified uploader

Weekly Downloads

A Plugin to build calendar widget that supports the date format in both AD and BS.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

date_utils, flutter, intl, nepali_utils, simple_gesture_detector

More

Packages that depend on ad_bs_calendar