Flutter Table Calendar — Custom

import 'package:flutter/material.dart';
import 'package:habit_saber/pages/widgets/marker.dart';
import 'package:table_calendar/table_calendar.dart';
class Calendar extends StatefulWidget {
const Calendar({Key? key}) : super(key: key);
@override
State<Calendar> createState() => _CalendarState();
}
class _CalendarState extends State<Calendar> {
@override
Widget build(BuildContext context) {
return Container(
child: TableCalendar(
firstDay: DateTime.utc(2010, 10, 16),
lastDay: DateTime.utc(2030, 3, 14),
focusedDay: DateTime.now(),
calendarBuilders: CalendarBuilders(
defaultBuilder: (context, day, focusedDay) {
return Marker();
},
todayBuilder: (context, day, focusedDay) {
return Marker();
},
),
),
);
}
}

--

--

--

just a coder who forgets things so makes blogs so he can remember later

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Makers Pre-Course — Week 4

Find All Anagrams in a String

[item for item in List Comprehensions if you want to master it]

Requests and Responses of an iOS Application

Complete guide to “Backup and Restore PostgreSQL Database”

Learn Ruby The Hard Way Exercise #015

Starbucks Rewards Mobile App Marketing Strategy

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
sourav mandal

sourav mandal

just a coder who forgets things so makes blogs so he can remember later

More from Medium

build an app using flutter and Firebase

Flutter MVP architecture with Riverpod and HookConsumerWidget

A Beginners Guide To Flutter App Development

What Kinds of Applications can Flutter be Used for?