dartemojiangular-dartdart-htmldart-webui

Emoji's doesn't render color in my AngularDart project


enter image description here

enter image description hereIn an angular dart project I am trying to populate a welcome page with app name and emoji's, but while resulting it doesn't render the color. It's only being populated in black color. kindly help. app_component.html

<div class="yns-welcome">
    <div class="yns-app-icon">{{appIcon}}</div>
    <div class="yns-main-header">{{appTitle}}</div>
    <div class="yns-sub-header">{{appSubtitle}}</div>
    <div class="yns-main-footer">{{appMainFooter}}</div>
    <div class="yns-sub-footer">{{appSubFooter}}</div>
</div>

app_component.css

:host {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

.yns-welcome {
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.yns-app-icon {
   font-size: 125px;
}

.yns-main-header {
    font-size: 40px;
}

.yns-sub-header {
    padding: 0 0 20px;
    font-size: 16px;
}

.yns-login-btn {
    background-color: dodgerblue;
    margin: 20px 0;
}

.yns-main-footer {
    font-size: 12px;
    padding: 5px 0 10px;
}

.yns-sub-footer {
    font-size: 10px;
}

Solution

  • I see you are using Chromium to load the page. I have seen weird things happen in Chromium before. The emoji renders fine in Chrome, Firefox and Safari on my machine.

    Let me know if this helps.

    Nick