dhmgroup / dart-wp

A WordPress API client for dart with support for WooCommerce and custom namespaces.
https://pub.dev/packages/wordpress_api
BSD 3-Clause "New" or "Revised" License
79 stars 28 forks source link

Exmaple App #14

Closed 2shrestha22 closed 4 years ago

2shrestha22 commented 4 years ago

We need example app for this library. I am new to programming and having problem with this package.

Here is code and I don't know data type so put List in return. How should I do if I don't want to put dynamic all over the app code and need a model?

 Future<List<dynamic>> fetchPosts(int pageNum) async {
    return wp.getPosts();
  }
}
theeomm commented 4 years ago

Please confirm that the latest update fixed your issue. Otherwise, this issue will be closed.

2shrestha22 commented 4 years ago

thanks..