nameH3 static method

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

Implementation

static Widget nameH3(
    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 h3(app, context, profileAttributes.name);
        }
        return progressIndicator(app, context);
      });
}