Giter Club home page Giter Club logo

Comments (4)

hyochan avatar hyochan commented on July 20, 2024 3

@hackerunet Why have you closed this? Is this ok now? I wanted to make sure we are looking at the same thing because I always test this through example project before actually publishing it. I can't judge if someone else is facing the problem because of this or others and that is why I asked them to check example codes.

If you check the example code, you can see something different.

      onDayPressed: (DateTime date, List<Event> events) {
        this.setState(() => _currentDate = date);
        events.forEach((event) => print(event.title));
      },

Please follow this and come back again if there are other problems.

from flutter_calendar_carousel.

hyochan avatar hyochan commented on July 20, 2024

I hope anyone of you experiencing these kinds of problem, I highly recommend you to do some testing with our example project. Please come back after that.

from flutter_calendar_carousel.

hackerunet avatar hackerunet commented on July 20, 2024

I'm sorry but the problem showed up extracting the code in the example page and placing it into a regular normal Widget. that's it, even the IJ IDE raised the exception, also in the documents there is a parameter called current which is not existent as parameter in the plugin, so, do not ask people to test the examples code if is out of date and is not congruent with documentation. instead of it just try to offer a possible solution.
captura de pantalla 2019-01-18 a la s 8 21 01 a m
captura de pantalla 2019-01-18 a la s 8 26 38 a m

from flutter_calendar_carousel.

subhangpati avatar subhangpati commented on July 20, 2024

@hackerunet Why have you closed this? Is this ok now? I wanted to make sure we are looking at the same thing because I always test this through example project before actually publishing it. I can't judge if someone else is facing the problem because of this or others and that is why I asked them to check example codes.

If you check the example code, you can see something different.

      onDayPressed: (DateTime date, List<Event> events) {
        this.setState(() => _currentDate = date);
        events.forEach((event) => print(event.title));
      },

Please follow this and come back again if there are other problems.

If you write code it will still throw an error,
The argument type 'void Function(DateTime, List<dynamic>)' can't be assigned to the parameter type 'void Function(DateTime, List<dynamic>, List<dynamic>)'.

Hence, pass in the third argument,
onDayPressed: (DateTime date, events , _)
This is solving the issue , hope this helps.

from flutter_calendar_carousel.

Related Issues (20)

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.