flutter_event_calendar 0.0.5 flutter_event_calendar: ^0.0.5 copied to clipboard
Gregorian and Jalali Event calendar for flutter with options for change style
import 'package:flutter/material.dart';
import 'package:flutter_event_calendar/flutter_event_calendar.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
// than having to individually change instances of widgets.
return Scaffold(
body: EventCalendar(
headerWeekDayStringType: 'full',
events: [
Event(
title: 'Laravel Event',
description:
'The largest Laravel event of the year, streamed directly to you. We’ve put together a full day of talks featuring some of Laravel’s brightest minds, and streaming them directly to your home or office.',
dateTime: '2020-09-27 20:00',
),
Event(
title: 'Vue.js Event',
description:
'Friday 18th September exclusive news from Evan You Live on our Youtube channel.' +
'This is FREE to the whole community & part of the #vuejsglobal conference experience.' +
'Subscribe Today to set up your notification.',
dateTime: '2020-09-27 22:00',
),
],
),
);
}
}