This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |