Browse Source

neon: Only load user status of status will be shown

pull/368/head
jld3103 1 year ago
parent
commit
342c9fed87
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/neon/neon/lib/src/widgets/user_avatar.dart

2
packages/neon/neon/lib/src/widgets/user_avatar.dart

@ -35,8 +35,10 @@ class _UserAvatarState extends State<NeonUserAvatar> {
void initState() { void initState() {
super.initState(); super.initState();
if (widget.showStatus) {
unawaited(_userStatusBloc.load(widget.username)); unawaited(_userStatusBloc.load(widget.username));
} }
}
@override @override
Widget build(final BuildContext context) => LayoutBuilder( Widget build(final BuildContext context) => LayoutBuilder(

Loading…
Cancel
Save