cr_calendar 0.0.5 cr_calendar: ^0.0.5 copied to clipboard
Awesome calendar with customizations, range picking and event showing.
import 'package:cr_calendar_example/pages/calendar_page.dart';
import 'package:cr_calendar_example/res/colors.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
/// Example app theme.
theme: ThemeData(
floatingActionButtonTheme:
const FloatingActionButtonThemeData(backgroundColor: violet),
primaryColor: violet,
accentColor: violet,
iconTheme: const IconThemeData(color: violet),
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
textStyle: const TextStyle(
color: violet,
fontSize: 16,
fontWeight: FontWeight.w500,
),
primary: violet,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(8))),
),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
textStyle: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
shadowColor: Colors.transparent,
elevation: 0,
primary: violet,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(8))),
),
),
dialogTheme: const DialogTheme(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(12))),
),
),
home: const CalendarPage(),
);
}
}