dakit_flutter 0.1.11
dakit_flutter: ^0.1.11 copied to clipboard
Flutter platform integrations for the DAKit DeviantArt client SDK.
dakit_flutter #
Flutter platform adapters for DAKit: a ready-to-use OAuth facade, deep links, secure storage, and native background transfers — without imposing screens or a state-management framework.
The package re-exports dakit_core and dakit_api, so a full Flutter
integration depends on this one package only.
Install #
dependencies:
dakit_flutter: ^0.1.11
Example #
final oauth = DAKitOAuthClient(
config: OAuthConfig(
clientId: clientId,
redirectUri: Uri.parse('dakit://oauth/callback'),
),
networkProfile: NetworkProfile.environment(),
diagnostics: diagnostics,
);
final restored = await oauth.resumePending();
final tokens = restored ?? await oauth.authorize();
What you get #
- OAuth: Authorization Code + S256 PKCE through the external system
browser, with cold-start callback recovery via
resumePending(). - Replaceable parts: hosts can swap the launcher, callback source, token store, pending transaction store, OAuth endpoint, or network profile.
- Background transfers:
BackgroundTransferManagerprovides persisted task recovery, progress, retry, pause/resume/cancel, and a media proxy independent from OAuth/API routing. It never substitutes previews when an original file is unavailable.
Android, macOS, and Windows still require native callback registration in the host application.
Documentation #
DAKit is a community project and is not affiliated with or endorsed by DeviantArt. MIT licensed.