Giter Club home page Giter Club logo

Comments (10)

atnegrete avatar atnegrete commented on July 20, 2024 1

I cloned the project & I had to update all the double assignments using integers to double, essentially adding '.0'

from flutter_calendar_carousel.

atnegrete avatar atnegrete commented on July 20, 2024 1

in example\lib\main.dart replaced borderRadius: BorderRadius.all(Radius.circular(1000)) with borderRadius: BorderRadius.all(Radius.circular(1000.0))

in lib\flutter_calendar_carousel.dart

added import 'dart:async'; to use the Future class.

this.markedDateIconMargin = 5, this.markedDateIconOffset = 5,

to
this.markedDateIconMargin = 5.0, this.markedDateIconOffset = 5.0,

and lastly

Positioned(
                bottom: 0,
                right: 0,
                child: Container(
                  padding: EdgeInsets.all(3),
                  decoration: widget.markedDateMoreCustomDecoration == null
                      ? new BoxDecoration(
                    color: Colors.red,
                    borderRadius: BorderRadius.all(Radius.circular(1000)),
                  )
                      : widget.markedDateMoreCustomDecoration
                  ,
                  child: Center(
                    child: Text(
                      widget.markedDateMoreShowTotal ? (count + widget.markedDateIconMaxShown).toString() : (count.toString() + '+'),
                      style: widget.markedDateMoreCustomTextStyle == null
                          ? TextStyle(
                          fontSize: 9,
                          color: Colors.white,
                          fontWeight: FontWeight.normal
                      )
                          : widget.markedDateMoreCustomTextStyle
                      ,
                    ),
                  ),
                ),
              )

to

 Positioned(
                bottom: 0.0,
                right: 0.0,
                child: Container(
                  padding: EdgeInsets.all(3.0),
                  decoration: widget.markedDateMoreCustomDecoration == null
                      ? new BoxDecoration(
                    color: Colors.red,
                    borderRadius: BorderRadius.all(Radius.circular(1000.0)),
                  )
                      : widget.markedDateMoreCustomDecoration
                  ,
                  child: Center(
                    child: Text(
                      widget.markedDateMoreShowTotal ? (count + widget.markedDateIconMaxShown).toString() : (count.toString() + '+'),
                      style: widget.markedDateMoreCustomTextStyle == null
                          ? TextStyle(
                          fontSize: 9.0,
                          color: Colors.white,
                          fontWeight: FontWeight.normal
                      )
                          : widget.markedDateMoreCustomTextStyle
                      ,
                    ),
                  ),
                ),
              )

from flutter_calendar_carousel.

hyochan avatar hyochan commented on July 20, 2024 1

Thank you for the fix. I hope you can give us PR next time.
This is very strange that it didn't catch type error in plugins environment.

Hope you to confirm this in 1.3.8.

from flutter_calendar_carousel.

atnegrete avatar atnegrete commented on July 20, 2024

The same thing is happening to me. Must be a new bug? I noticed the last PR in was 2 days ago though

from flutter_calendar_carousel.

hyochan avatar hyochan commented on July 20, 2024

Could you test the exmaple project and comeback? I can't see any fixes just reading this.

from flutter_calendar_carousel.

Denmal1982 avatar Denmal1982 commented on July 20, 2024

I cloned the project & I had to update all the double assignments using integers to double, essentially adding '.0'

it works, thanks

from flutter_calendar_carousel.

hyochan avatar hyochan commented on July 20, 2024

Which variable is it?

from flutter_calendar_carousel.

hyochan avatar hyochan commented on July 20, 2024

Is this still occurring in a recent version which is 1.3.7?

from flutter_calendar_carousel.

atnegrete avatar atnegrete commented on July 20, 2024

I was on vacation. I will take a look at it tonight. Thanks for the update!

from flutter_calendar_carousel.

atnegrete avatar atnegrete commented on July 20, 2024

Yes, it is still occurring.

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.