CssLoader constructor

const CssLoader({
  1. String style = ''' .loader { position: absolute; top: calc(50% - 25px); left: calc(50% - 25px); width: 50px; height: 50px; background-color: #333; border-radius: 50%; animation: loader 1s infinite ease-in-out; } @keyframes loader { 0% { transform: scale(0); } 100% { transform: scale(1); opacity: 0; } } ''',
  2. String loaderClassName = 'loader',
})

Constructor

Implementation

const CssLoader({
  this.style = '''
  .loader {
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    animation: loader 1s infinite ease-in-out;
  }
  @keyframes loader {
    0% {
    transform: scale(0);
    }
    100% {
    transform: scale(1);
    opacity: 0;
    }
  }
  ''',
  this.loaderClassName = 'loader',
});