nameH4 static method

Widget nameH4(
  1. BuildContext context,
  2. String memberId,
  3. AppModel app,
  4. String feedId,
)

Implementation

static Widget nameH4(
    BuildContext context, String memberId, AppModel app, String feedId) {
  return FutureBuilder<ProfileAttributes>(
      future: _getProfileAttributes(memberId, app, feedId),
      builder: (context, snapshot) {
        if (snapshot.hasData) {
          var profileAttributes = snapshot.data!;
          return h4(app, context, profileAttributes.name);
        }
        return progressIndicator(app, context);
      });
}