forked from Henry-Hiles/nexus
refactor badges
This commit is contained in:
parent
6523420120
commit
8d0eafae8a
5 changed files with 26 additions and 9 deletions
|
|
@ -31,9 +31,8 @@ class AvatarOrHash extends StatelessWidget {
|
|||
child: Center(
|
||||
child: Badge(
|
||||
isLabelVisible: hasBadge,
|
||||
label: SizedBox.shrink(),
|
||||
offset: Offset(8, -8),
|
||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||
smallSize: 8,
|
||||
backgroundColor: Theme.of(context).colorScheme.onPrimaryContainer,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||
child: SizedBox(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue