nexaflow_flutter_sdk 0.0.1
nexaflow_flutter_sdk: ^0.0.1 copied to clipboard
Flutter SDK for Nexaflow.
Nexaflow SDK Flutter #
A flutter package for connecting Flutter apps with NexaFlow platform.
Features #
- Custom Models for Website, Pages & Block Library
- Access Nexaflow api's directly
Getting started #
1. Add this to your package's pubspec.yaml
file:
dependencies:
nexaflow_flutter_sdk: ^0.0.1
2. Import nexaflow_flutter_sdk
import 'package:nexaflow_flutter_sdk/nexaflow_flutter_sdk.dart';
Usage #
NexaflowSdk sdk = NexaflowSdk(apiKey: 'API_KEY');
try {
List<Website> websites = await sdk.getAllWebsites();
Website website = await sdk.getWebsiteById(websiteId: websites.first.id);
print(website.id);
print(website.pages.length);
} catch (e) {
print(e);
}