🔷Flutter
1. Create your ComponentPropertyClass with properties that you need
In this example i used Button component
2. Add your Component json object in Dymanic.json
3. Create your Component
:memo: Note: Your widget must have two properties.
ButtonProperties: The mapped properties from json
callback: This make reference to the component's behaviour, for example: onclick -> for buttons, onchange -> for checkbox etc...
4. Create your Component Builder
:memo: Note: This Builder must extend CraftBuilder Class and override craft and fromJson methods.
5. In your Page, create your CraftDBuilder declaration and put it into CraftDynamic Widget
Last updated