Questions tagged [table-calendar]

42 questions
0
votes
1 answer

Want to change styling of several dates in Flutter Table Calendar if they were selected

I'm trying to build a calendar widget with the table_calendar package. If an unselected date is tapped, it must be greyed out. If a greyed out date is tapped, styling must be set to default. This is to make dates unavailable for booking. If a date…
Mich27
  • 1
  • 2
0
votes
1 answer

how to pass events from an API to _KEventsSource in utils table_calender

i am trying to loop through events from an API and load them into _kEventSource then display them in table calendar, but my code is not working neither is it showing any errors or printing anything. This file is the utils file that comes with the…
0
votes
1 answer

onFormatChanged() not working with TableCalendar

fI wrote the onFormatChanged() method and set the property, but when I use the button on the calendar to change the format, I do not see anything happen. Is there anything I'm doing wrong? class Calendar extends StatefulWidget { const…
0
votes
1 answer

Flutter: how to create Map from firebase snapshot and merge data with same key

i want to use table_calendar with firebase data, but still having issue passing events into the widget .... Sample structure of firebase data: { 'date' : 26 Jun 'name' : A 'date' : 26 Jun 'name' : B 'date' : 11 Feb 'name' : C } i want to create…
icantcode
  • 142
  • 1
  • 15
0
votes
1 answer

Flutter: Unhandled Exception: type 'QuerySnapshot' is not a subtype of type 'Future?'

i am migrating the project to null safety using table_calendar 3.0.0, however the library made a huge change since null safety in terms of loading events, i am still struggling rewriting the whole code with the firebase implementation, any help is…
0
votes
1 answer

how to disable past day on table calendar flutter

i use package table calendar, how to disable table calendar past day on flutter if on week view hide all past day on mont view grey all past day on this month and disable to past month enter image description here
0
votes
0 answers

How to set string date in tablecalendar as event

I need to set string date in table calendar as evenloader,anyone can please share demo. it will be very helpful to me thanks. Api Response:- "leave_management": [ { "leave_date": "Jan 01, 1970", …
0
votes
1 answer

How to get the range of currently visible dates of table_calendar flutter?

Each time I go to a new page in my calendar, I would like to get the range of dates displayed in a Page
0
votes
0 answers

Flutter - calendar events

enter image description here as you see in the image that the events are in days 1-5-2022 and 17-5-2022 but they are both loading in the two days, I think the problem in the api method "getMeetApiEvents" but not sure List
0
votes
2 answers

Error in using table_calendar: ^3.0.5 dependency in flutter

I get this error in my code where I used a table_calendar dependency. Here is my code where I implemented the calendar. import 'package:fitr/reusable_widgets/bottom_navbar.dart'; import 'package:flutter/material.dart'; import…
0
votes
0 answers

Event markers not loading into Table Calendar widget [Flutter]

I'm trying to populate my Table Calendar widget with events from Firebase. I was able to do this successfully, with events being loaded into a list of events associated with that day. While the list shows successfully once I tap on a day, the marker…
Danah
  • 45
  • 4
-1
votes
1 answer

Flutter: Why LinkedHashMap..addAll replaced all old data instead of append

sample list: _events = [{ "name" : "A", "date" : "15 jun" }, { "name" : "B", "date" : "15 jun" }, { "name" : "C", "date" : "17 jun" }, { "name" : "D", "date" : "17 jun" },] kEvents = LinkedHashMap>(equals: isSameDay,…
icantcode
  • 142
  • 1
  • 15
1 2
3