flutter_advanced_calendar 0.0.1 flutter_advanced_calendar: ^0.0.1 copied to clipboard
An advanced calendar provides a rich API for widget customization that opens a new look and feel in your app.
import 'package:flutter/material.dart';
import 'package:flutter_advanced_calendar/flutter_advanced_calendar.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final _calendarController = AdvancedCalendarController.today();
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
home: Scaffold(
appBar: AppBar(
title: const Text('Advanced Calendar Example'),
),
body: Column(
mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AdvancedCalendar(
controller: _calendarController,
),
],
),
),
);
}
}