https://github.com/hooshyar/Flutter-Wordpress-Client
Flutter ios/android app to get posts from Wordpress Rest Api
https://github.com/hooshyar/Flutter-Wordpress-Client
dart flutter flutter-apps flutter-examples
Last synced: 9 months ago
JSON representation
Flutter ios/android app to get posts from Wordpress Rest Api
- Host: GitHub
- URL: https://github.com/hooshyar/Flutter-Wordpress-Client
- Owner: hooshyar
- License: gpl-3.0
- Created: 2019-01-02T15:43:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-25T19:05:20.000Z (11 months ago)
- Last Synced: 2025-03-28T02:16:28.201Z (9 months ago)
- Topics: dart, flutter, flutter-apps, flutter-examples
- Language: Dart
- Size: 527 KB
- Stars: 189
- Watchers: 27
- Forks: 72
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter WordPress Client
A modern, lightweight Flutter client for WordPress sites that doesn't require authentication. Perfect for building mobile apps for WordPress-based blogs and news sites.
## Features
- 📱 Clean, Material Design UI
- 🚀 Fast and responsive
- 📄 View posts and categories
- 🖼️ Media support
- 🔍 Search functionality
- 🌐 No authentication required
## Getting Started
### Prerequisites
- Flutter SDK (>=3.2.0)
- Dart SDK (>=3.2.0)
- A WordPress site with REST API enabled
### Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/Flutter-Wordpress-Client.git
```
2. Install dependencies:
```bash
flutter pub get
```
3. Update the WordPress site URL in `lib/src/config.dart`
4. Run the app:
```bash
flutter run
```
## Configuration
Edit `lib/src/config.dart` to set your WordPress site URL and other configurations:
```dart
final String wordPressUrl = 'https://your-wordpress-site.com';
```
## Architecture
The app follows a clean architecture pattern:
- `/models` - Data models
- `/widgets` - Reusable UI components
- `/db` - Local database handling
- `/view_models` - Business logic
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## License
This project is licensed under the MIT License - see the LICENSE file for details.
for more information about WordPress rest API visit https://developer.wordpress.org/rest-api/
For help getting started with Flutter, view Flutter online
[documentation](https://flutter.io/).
I have used this repository:
https://github.com/kbirch/wordpress_client
## Prerequisites
Flutter
Make sure your WordPress version is greater or equal to 4.7
Clone repository
git clone https://github.com/hooshyar/Flutter-Wordpress-Client.git
and open pubspec.yaml
run
flutter packages get
open config.dart and change "https://www.mihrabani.com" to your website address for example if my website is wordpress.com you have to change it to this : "http://www.wordpress.com"
Do not add any additional characters like "/".
to your WordPress website address
run app on a simulator
flutter run
## Roadmap
- [x] Sliver app bar
- [x] Sliver list view
- [x] Connectivity status, if offline pop a message
- [ ] Cache on device
- [x] Pull to refresh
- [x] Global perPage
- [ ] Global theming
- [ ] Setting page
- [x] Provider
- [ ] Splash screen
- [ ] Nice Categories page screen
- [ ] real time clap button like Medium
- [ ] Share and fav buttons