Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting dot icon per event #71

Merged
merged 1 commit into from
Feb 19, 2019
Merged

Setting dot icon per event #71

merged 1 commit into from
Feb 19, 2019

Conversation

opensourcegps
Copy link

Dot icon per event:

              var mark_icon = Container(
                      margin: EdgeInsets.symmetric(horizontal: 1.0),
                      color: Colors.yellow,
                      height: 4.0,
                      width: 4.0,
                    );

                    var event =  new Event(
                      date: date,
                      title: 'title'
                      icon: mark_icon,
                    );

In calendar init:

        markedDateShowIcon: false,
        markedDateIconBuilder: (event) {
          return event.icon;
        },

@hyochan
Copy link
Owner

hyochan commented Feb 19, 2019

@opensourcegps Thank you for the contribution. Currently, we supported optional event widget but do you want this to be fixed as a dot?

@hyochan hyochan added the enhancement New feature or request label Feb 19, 2019
@opensourcegps
Copy link
Author

@hyochan yes, this will allow to have dots of multiple colors.

@hyochan hyochan merged commit 121314a into hyochan:master Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants