patch_pal 0.0.1 copy "patch_pal: ^0.0.1" to clipboard
patch_pal: ^0.0.1 copied to clipboard

outdated

Flutter package thats helps you to patch your widget/code with json data.

PatchPal #

Flutter CI

patch_pal package help to enable/disable feature of app from json file. use raw git path like this

Getting started #

The Json structure will be like

{
  "packageName": "com.yeasin50.patch_pal",
  "version": "1.0.0",
  "items": [
    {
      "name": "number of mango",
      "value": 3,
      "message": "added 3 mango"
    },
    {
      "name": "rain",
      "value": true,
      "message": "enabled rain based on weather"
    }
  ],
  "updates": ["looking for updates..."]
}

Usage #

Include short and useful examples for package users. Add longer examples to /example folder.

  1. add dependency

    patch_pal:
    git:
      url: https://github.com/yeasin50/patch_pal.git
      ref: master
    
  2. initialize config path

    /// You need to setup the path, you can use [FutureBuilder]
    PatchPal.setUp(yourJsonConfigFilePath);
    
  3. Then you can get value using PatchItemName

    PatcherViewOnFalse(patchItemName: 'rain' )
    

TODO #

  • ❌ Config(Json) generator
  • ❌ version based features
  • ❌ alert widgets and views
  • ❌ stream or ValueLister
4
likes
0
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package thats helps you to patch your widget/code with json data.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, mockito

More

Packages that depend on patch_pal