Skip to content

Commit 303e0af

Browse files
author
ProgrammerHasan
committed
circle_avatar_number components
1 parent ce0ca87 commit 303e0af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'package:flutter/material.dart';
2+
3+
4+
class CircleAvatarNumberComponent extends StatelessWidget {
5+
CircleAvatarNumberComponent(this.data);
6+
7+
final int data;
8+
@override
9+
Widget build(BuildContext context) {
10+
return CircleAvatar(child: Text(data.toString(),style: TextStyle(color: Colors.white),),backgroundImage: AssetImage('your asset'),backgroundColor: Colors.transparent,);
11+
}
12+
}

0 commit comments

Comments
 (0)