dynamic_content 1.0.0 copy "dynamic_content: ^1.0.0" to clipboard
dynamic_content: ^1.0.0 copied to clipboard

Dynamically update assets from remote sources

dynamic_content #

Pub Package Build Status Coverage Status GitHub Issues GitHub Forks GitHub Stars GitHub License

DynamicContent is a text file (json) that provided as application assets, and might be updated from remote site (and check updates for a given ttl).

Getting Started #

In your dart/flutter project add the dependency:

 dependencies:
   ...
   dynamic_content: ^1.0.0

Get cibtebt

import 'package:dynamic_content/dynamic_content.dart';

final settingsContent = DynamicContent(
    variants: [
      'https://some-remote-endpoint.org/config-${Platform.operatingSystem}.zip',
      'https://some-remote-endpoint.org/config.zip'],
    localPath: 'config.json',
    bundlePath: 'assets/config-${Platform.operatingSystem}.json');

// fetch current content (from assets or cached)
final Map<String, dynamic> adsSettings = await settingsContent.fetch();

// update ads settings from remote
await settingsContent.update();

Features and bugs #

Please file feature requests and bugs at the issue tracker.

License #

The Apache 2.0 License, see LICENSE.

0
likes
140
points
30
downloads

Publisher

verified publisherkb-apps.com

Weekly Downloads

Dynamically update assets from remote sources

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

archive, easy_logger, flutter, http, path_provider

More

Packages that depend on dynamic_content