jifalops / mdc_web

Dart wrapper for the material-components-web javascript library.
MIT License
18 stars 6 forks source link

Use mdc_web through index.html or pubspec.yaml+Dart file? #10

Open andesappal opened 4 years ago

andesappal commented 4 years ago

Jacob, in your repo, you instruct the use of mdc_web by a script placed in index.html. Then on mdc_web Pub Dev you instruct the use of mdc_web by a different set of instructions, through an edit on pubspec.yaml and, if I'm not mistaken, an import of the pkg to a component's Dart file. Which one is it? Or is it both?

Thanks, Andres

andesappal commented 4 years ago

Hi Jacob,

.card_media {
  background-image: url($mdc-card-image);
  position: relative; // Child element `__media-content` has `position: absolute`
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: left;
  background-size: cover;
}

Isn't working for me. In particular, background-position: left, which I imagine will position the media to the left of the card, instead of atop, or north of the card. Am I missing anything?