Register product custom widget allows managing content of block Custom Widget in product detail screen when setting in App builder
Example
Requirement
- Plugin App builder
v4.0.0
or above - Cirilla
v4.0.0
or above
Build widget in app
Open file: cirilla/lib/register_product_custom_widget.dart
Add the code snippets to the registerProductCustomWidget function:
if (key == "demo") {
return Text("Product custom widget demo");
}
Setting App builder
Setting a block Custom Widget of Product Detail
In addition to the normal values of the block, there will be the following additional values:
Key Custom | Custom Widget can have many different content custom. So use Custom Widget to precisely specify the desired content Required. |
Data Json | Is a json stringify |
Note
Key Custom is key when Install app (preview)