Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neoapps-dev/potator
A simple client for Potatoes reverse-fetch proxy and domain system made in pure Dart and Flutter
https://github.com/neoapps-dev/potator
Last synced: 9 days ago
JSON representation
A simple client for Potatoes reverse-fetch proxy and domain system made in pure Dart and Flutter
- Host: GitHub
- URL: https://github.com/neoapps-dev/potator
- Owner: neoapps-dev
- License: mit
- Created: 2024-09-11T18:29:55.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T19:03:15.000Z (2 months ago)
- Last Synced: 2024-09-12T04:51:05.360Z (2 months ago)
- Language: C++
- Size: 264 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Potator
A simple client for [Potatoes](https://github.com/neoapps-dev/potatoes-backend) reverse-fetch proxy and domain system
made in pure Dart and Flutter## Usage
1. **Install potator**:
```dart
flutter pub add potator
```2. **Import the package**:
```dart
import 'package:potator/potator.dart';
```3. **Use it**:
```dart
Potator potator = Potator('YOUR_POTATO_SERVER_URL'); // if you don't want to change the server, don't include the `'YOUR_POTATO_SERVER_URL'` thing
potator.use('YOUR_POTATO_SERVER_URL'); // optional, changes the Potato server
final String google = await potator.get('google.potato/');
// the slash is optional, and can be used to get a specific file, for example:
final String hosts = await potator.get('hosts.potato/HOSTS.txt');
// will return the official HOSTS :)
```## License
[MIT](LICENSE)