openJsonAsLink method

  1. @override
Widget openJsonAsLink(
  1. BuildContext context,
  2. AppModel app,
  3. String jsonString
)
override

Implementation

@override
Widget openJsonAsLink(BuildContext context, AppModel app, String jsonString) {
  return FutureBuilder<String>(
      future: getFile(jsonString),
      builder: (context, snapshot) {
        if (snapshot.hasData) {
          return text(app, context, snapshot.data!);
        }
        return progressIndicator(app, context);
      });
}