pinkfish / flutter_calendar Goto Github PK
View Code? Open in Web Editor NEWCalendar widget for flutter
License: BSD 2-Clause "Simplified" License
Calendar widget for flutter
License: BSD 2-Clause "Simplified" License
Is it published on pub.dev?
Have you already experienced a problem when you swipe the calendar and sometimes it jumps back to the month you were at?
How to reproduce:
In the calendar, swipe to the next month, sometimes the widget will "jump back" to your month before swiping
I think it has something to do with the event lists, you change the header, then the header changes the event list that changes the header back.
Thanks!
I want to extend your code to build a 2nd day view that is more like google cal in that each hour is laid out with the cal events at the correct locations.
Lets call it a "padded day view".
The current one you have is called a "schedule day view".
Once we have a "padded day view", we can add drag and drop.
The code is here with a ani gif:
https://github.com/Norbert515/flutter_list_drag_and_drop
If you read his comments in the readme, he has changed his code to use the StackView approach, but i am really not sure how that aligns with your approach.
Would you be open to collaborating on this ?
Hi.
Can I use multiple Calendars in one screen ??
I have 2 or 3 tabs, and I am trying to put one Calendar inside each tab.
I am getting this error in the debug console.
═══ Exception caught by widgets library ══════
The following assertion was thrown while finalizing the widget tree:
'package:flutter/src/widgets/framework.dart': Failed assertion: line 1217 pos 12: '_debugLifecycleState == _StateLifecycle.ready': is not true.
With this detail
When the exception was thrown, this was the stack
#2 State.dispose
package:flutter/…/widgets/framework.dart:1217
#3 CalendarWidgetState.dispose
package:sliver_calendar/src/calendar.dart:158
#4 StatefulElement.unmount
package:flutter/…/widgets/framework.dart:4435
#5 _InactiveElements._unmount
package:flutter/…/widgets/framework.dart:1748
#6 _InactiveElements._unmount.
package:flutter/…/widgets/framework.dart:1746
...
════════════════════════════
Maybe is something wrong in my code, but I cant make it work properly.
I am using the calendar inside TabBarView.
Each TabBarView has a CalendarWidget... so I have multiple of them in my widget tree!
The error appears in the debug console when I scroll to the second Tab.
Any idea? Thanks in advance.
Is it possible to have 2 events at the same time:
eg:
event 1
:⠀⠀from 1:00pm
⠀⠀to 2:00pm
event 2
:⠀⠀from 1:30pm
⠀⠀to 2:45pm
both are in the same day
Hello,
It seems that _CalendarHeaderState causes the following exception:
flutter error: This widget has been unmounted, so the State no longer has a context (and should be considered defunct)
The fix:
1:
Move initialization of _controller to initState():
_controller=AnimationController(duration: _kExpand, vsync: this);
2: Move everything in consctructor to initState() (after setting the _controller):
_monthIndex = monthIndexFromTime(clock.now());
_easeInAnimation =
CurvedAnimation(parent: _controller, curve: Curves.easeIn);
_iconTurns = Tween(begin: 0.0, end: 0.5).animate(_easeInAnimation);
HTH :)
i.e. display names of months in different languages? or be RTL?
Hi. I have cloned the repo and then ran "flutter run" on the example app.
When I tap on "January 2019" nothing happens and I get an error in console:
I/flutter (19922): Another exception was thrown: 'package:sliver_calendar/src/calendarheader.dart': error: file:///Users/user/.pub-cache/hosted/pub.dartlang.org/sliver_calendar-0.1.0/lib/src/calendarheader.dart:136:40: Error: The argument type 'Null Function(Null)' can't be assigned to the parameter type 'dynamic Function(void)'.
What could be wrong?
Hi.
I ran the demo app on my phone LG G5, while scrolling there was visible performance lag.
I was wondering if somebody has tested this as a released/production app?
Also, I am not sure if this was added or would help:
Peace.
The wrong has been solved!
I/flutter ( 6217): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 6217): The following LocationNotFoundException was thrown building FutureBuilder(dirty, state:
I/flutter ( 6217): _FutureBuilderState#14307):
I/flutter ( 6217): Location with the name "GMT" doesn't exist
I/flutter ( 6217):
I/flutter ( 6217): When the exception was thrown, this was the stack:
I/flutter ( 6217): #0 LocationDatabase.get (package:timezone/src/location_database.dart:33:7)
I/flutter ( 6217): #1 getLocation (package:timezone/src/env.dart:41:20)
Hello,
since flutter 0.10.1 the Null of calendarheader.dart:136 must be void
#22977 replaces most of Null by void. See the mail proposing this change.
cheers,
seder001
Hi.
Can you add a option to change header and calendar background color?
Today it prints fixed in White, and it could be nice to change to other color accordingly to the app context!
Thanks!
Or if you allows me to, I can do it and make a merge, OK?
Hi.
The Calendar displays without any problem on a full-device-width UI.
But if I wrap the CalendarWidget with Padding, I get this overflow error
RenderFlex overflowed
Using this code
Padding(
padding: const EdgeInsets.all(10),
child: CalendarWidget( ... )
),
Does anyone know how can I fix this right overflow??
Thanks!
How can I limit the months, not to became an infinite scroll?
For example, I want to allow the user to access just 12 months before and after a given date.
Thanks!
I tried this calendar but without success, it gives me a white screen and nothing happens.
Dart 2.0 support
Hello,
for some reason the 28th of October 2018 existed twice (maybe for me)
cheers
seder001
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.