pilla_remote_content 0.0.3 pilla_remote_content: ^0.0.3 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"
}
}
]
}