buildGetX method

GetX<FluttermojiController> buildGetX()

Implementation

GetX<FluttermojiController> buildGetX() {
  return GetX<FluttermojiController>(
      init: FluttermojiController(),
      autoRemove: false,
      builder: (snapshot) {
        if (snapshot.fluttermoji.value.isEmpty) {
          return CupertinoActivityIndicator();
        }
        return SvgPicture.string(
          snapshot.fluttermoji.value,
          height: radius * 1.6,
          semanticsLabel: "Your Fluttermoji",
          placeholderBuilder: (context) => Center(
            child: CupertinoActivityIndicator(),
          ),
        );
      });
}