Coder Social home page Coder Social logo

flutter_calendar's People

Contributors

eimji avatar pinkfish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_calendar's Issues

RenderFlex overflowed when padding

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 to limit start month and end month?

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!

Change background color

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?

the app runs with red screen

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)

Calendar header handling animation controller incorrectly

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 :)

extend day view with "Padded day view" and drag and drop

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 ?

2 events at the same time

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

white screen

I tried this calendar but without success, it gives me a white screen and nothing happens.

Exception CalendarWidgetState.dispose - When Flutter unmount and dispose CalendarWidget

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.

void for Null on value

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

Stuttering Performance / Lag

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:

flutter/flutter#22314

Peace.

Example App - Tapping on header doesn't open calendar

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?

Calendar jumps from/to previous month

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.