flutter_nepali_calendar 0.0.6 copy "flutter_nepali_calendar: ^0.0.6" to clipboard
flutter_nepali_calendar: ^0.0.6 copied to clipboard

Flutter Nepali Calendar

example/lib/main.dart

import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_nepali_calendar/Modules/nepali_calendar_view.dart';
import 'package:flutter_nepali_calendar/Modules/my_calendar_data.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home:  NepaliCalendarView(
        datas: myCalendarData,
        dayFormat: DayFormat.nepali,
        // backgroundColor: Colors.green,
        // calendarBackgroundColor: Colors.blueGrey,
        // headerTextColor1: Colors.white,
        // headerTextColor2: Colors.white,
        // headerTextColor3: Colors.white,
        // iconColor: Colors.white,
        // holidayColor: Colors.yellow,
        // weekendDay: WeekendDay.saturday,
        // selectedBackgroundColor: Colors.blue,
        // tithiTextColor: Colors.black87,
        onTap: (Map data){
          print("data: $data");
        },
      ),
    );
  }
}
2
likes
120
points
77
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter Nepali Calendar

Homepage

License

BSD-3-Clause (license)

Dependencies

flutter, get, intl

More

Packages that depend on flutter_nepali_calendar