pilla_generator 0.0.7 copy "pilla_generator: ^0.0.7" to clipboard
pilla_generator: ^0.0.7 copied to clipboard

Generates code for OTA content updates

Features #

Generate code for OTA updates on app content

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();
}

Run the build_runner to generate code:

flutter packages pub run build_runner build

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
70
pub points
6%
popularity

Publisher

verified publisherapp.pillapoupe.com

Generates code for OTA content updates

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

analyzer, build, flutter, hive, pilla_remote_content, source_gen, source_helper

More

Packages that depend on pilla_generator