including the content of the url inside the widget
问题 i want to get the content of the parsed json value that call URL import 'dart:async'; import 'dart:convert'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:http/http.dart' as http; Future<List<Photo>> fetchPhotos(http.Client client) async { final response = await client.get('https://pastebin.com/raw/RfNvKVPp'); return compute(parsePhotos, response.body); } List<Photo> parsePhotos(String responseBody) { final parsed = jsonDecode(responseBody)[