Skip to content

Instantly share code, notes, and snippets.

View WordpressArtist's full-sized avatar

Aashu Mishra WordpressArtist

  • Kathmandu, Nepal
View GitHub Profile
class _EventContentState extends State<EventContent> with AutomaticKeepAliveClientMixin<> {
final String url = 'https://furnishmenow.co.za/wp-json/wp/v2/posts'; // Testing url
List data;
Future<String> getEventContentData() async{
var res = await http.get(Uri.encodeFull(url), headers: { "Accept": "applications/json"});
setState(() {
var resBody = json.decode(res.body);
data = resBody;