noProfileContainer method

Widget noProfileContainer({
  1. String? name,
})

no profile picture widget

Implementation

Widget noProfileContainer({
  String? name,
}) {
  List<Color> colors = [Colors.deepOrange, Colors.purple, Colors.indigo];
  return Container(
    decoration: BoxDecoration(
      color: colors[1],
    ),
    child: Center(
        child: Text(
      name ?? "",
      style: const TextStyle(
        color: Colors.white,
        fontWeight: FontWeight.bold,
      ),
    )),
  );
}