flutter_nepali_calendar 0.0.7
flutter_nepali_calendar: ^0.0.7 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");
},
),
);
}
}