skip to Main Content

In Flutter, we use the Visibility widget to control the visibility of a child widget. What is the equivalent approach to achieve the same functionality when building widgets dynamically from JSON?

I didn’t find any such JSON file in this link.
https://pub.dev/packages/json_dynamic_widget

2

Answers


  1. What are you trying to achieve? Is it Server Side Rendering?

    Login or Signup to reply.
  2. There are two answers. The first is the Visibility widget is now included with the newly released 7.3.1 version. However, the second is "you can add any widget you want". The documentation describes how to build your own custom widgets so if there are widgets you need in the future, you can always add them to your own code base and run the code generator to "JSON-ify" them.

    https://github.com/peiffer-innovations/json_dynamic_widget/tree/main/json_dynamic_widget#creating-custom-widgets

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search