mirrored_repositories/flutter-gamestreaming-ui/lib
import 'package:flutter/material.dart';

class PopularStreamers extends StatelessWidget {

  final String name;
  final String followers;
  final String imagePath;
  final Color color;


  PopularStreamers({this.name, this.followers, this.imagePath, this.color});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 60,
      width: 165,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          Container(
            height: 50,
            width: 50,
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(10),
              color: color,
              image: DecorationImage(
                image: AssetImage(
                  imagePath,
                ),
                fit: BoxFit.cover,
              ),
            ),
          ),
          SizedBox(
            width: 10,
          ),
          Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              Text(
                name,
                style: TextStyle(
                    color: Colors.black87, fontWeight: FontWeight.w500),
              ),
              SizedBox(
                height: 5,
              ),
              Text(
                'Followers $followers',
              )
            ],
          )
        ],
      ),
    );
  }
}
