mirrored_repositories/octo-certification-manager/lib/src
import 'package:flutter/material.dart';

class SocialIcons extends StatelessWidget {
  final List<Color> colors;
  final IconData iconData;
  final Function onPressed;

  const SocialIcons({Key key, this.colors, this.iconData, this.onPressed})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(8.0),
      child: Container(
        width: 45,
        height: 45,
        decoration: BoxDecoration(
          shape: BoxShape.circle,
          gradient: LinearGradient(colors: colors, tileMode: TileMode.clamp),
        ),
        child: RawMaterialButton(
          shape: CircleBorder(),
          onPressed: onPressed,
          child: Icon(iconData, color: Colors.white),
        ),
      ),
    );
  }
}
