pilla_remote_content 0.0.8 copy "pilla_remote_content: ^0.0.8" to clipboard
pilla_remote_content: ^0.0.8 copied to clipboard

A package for managing remote content.

Features #

Allows for OTA updates on app contents

Getting started #

1. Get the package #

Add this to your pubspec.yaml file:

dependencies:
  pilla_remote_content: any
  
dev_dependencies:
  pilla_generator: any

Usage #

create a file remote.dart

import 'package:pilla_remote_content/pilla_remote_content.dart';

part 'remote.g.dart';

@RemoteContent(
    languageKey: ['pt'],
    path: 'assets/content/content.json')
class AppRemoteContent {
  const AppRemoteContent();
}

Additional information #

Your content.json must have the following structure:


{
    "config":[
       {
          "key":"any_key",
          "name":"any_name",
          "value":{
             "some_key":"some_value",
             "some_other_key":"some_other_value"
          }
       }
    ]
 }

0
likes
120
pub points
41%
popularity

Publisher

verified publisherapp.pillapoupe.com

A package for managing remote content.

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio, flutter, hive, hive_flutter

More

Packages that depend on pilla_remote_content