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

Customizado #40

Closed
WellingtonFonseca opened this issue Dec 7, 2018 · 0 comments
Closed

Customizado #40

WellingtonFonseca opened this issue Dec 7, 2018 · 0 comments

Comments

@WellingtonFonseca
Copy link

WellingtonFonseca commented Dec 7, 2018

Olá, equipe de desenvolvedores, eu fiz uma adaptação no arquivo calendar_tile.dart e como não sou dev estou postando para que possam ver e checar se gostam

ezgif-2-1d22532639a5

Widget renderDateOrDayOfWeek(BuildContext context) {

    if (isDayOfWeek) {
      return new InkWell(
        child: new Container(
          alignment: Alignment.center,
          child: new Text(
            dayOfWeek,
            style: dayOfWeekStyles,
          ),
        ),
      );
    } else {
      return new InkWell(
        onTap: onDateSelected,
        child: new Container(
          decoration: isSelected
              ? new BoxDecoration(
                  shape: BoxShape.circle,
                  color: const Color.fromRGBO(204, 204, 204, 0.3),
                )
              : new BoxDecoration(),
          alignment: Alignment.center,
          child: new Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                new Text(
                  Utils.formatDay(date).toString(),
                  style: new TextStyle(
                      fontSize: 12.0, fontWeight: FontWeight.w400),
                ),
                Utils.fullDayFormat(date).toString() == Utils.fullDayFormat(DateTime.now()).toString()
                    ? new Container(
                        padding: new EdgeInsets.only(top: 3.0),
                        width: 3.0,
                        height: 3.0,
                        decoration: new BoxDecoration(
                          shape: BoxShape.circle,
                          color: const Color.fromRGBO(247, 64, 106,1.0), // cor da marcacao do dia de hoje
                        ),
                      )
                    : new Container()
              ],
            ),
        ),
      );
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant