[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-9321":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":17,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},9321,"dynamic_widget","dengyin2000\u002Fdynamic_widget","dengyin2000","A Backend-Driven UI toolkit, build your dynamic UI with json, and the json format is very similar with flutter widget code.","",null,"Dart",1655,327,39,45,0,1,4,56.45,"Apache License 2.0",false,"master",true,[25,26,27,28],"dynamic","dynamicwidget","flutter","widget","2026-06-12 04:00:44","[![Pub](https:\u002F\u002Fimg.shields.io\u002Fpub\u002Fv\u002Fdynamic_widget.svg?color=orange)](https:\u002F\u002Fpub.dev\u002Fpackages\u002Fdynamic_widget)&nbsp;\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSolido\u002Fawesome-flutter\">\n    \u003Cimg alt=\"Awesome Flutter\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAwesome-Flutter-blue.svg?longCache=true&style=flat-square\" \u002F>\n\u003C\u002Fa>\n# Flutter Dynamic Widget\n>A Backend-Driven UI toolkit, build your dynamic UI with json, and the json format is very similar with flutter widget code.\n\n**From 4.0.0-nullsafety.1 version, it supports null-safety.**\n\n**From 3.0.0 version, it supports exporting your flutter code to json code. please check [How to write the json code](#how-to-write-the-json-code)**\n\n**From 1.0.4 version, it supports flutter web application.**\n\n\n\n\n## Table of contents\n* [General info](#general-info)\n* [Screenshots](#screenshots)\n* [Install](#install)\n* [Get started](#get-started)\n* [How to implement a WidgetParser](#how-to-implement-a-widgetparser)\n* [How to add a click listener](#how-to-add-a-click-listener)\n* [How to write the json code](#how-to-write-the-json-code)\n* [Logic Dynamicization](#logic-dynamicization)\n* [Widget Documents](#widget-documents)\n* [Setup](#setup)\n* [Contact](#contact)\n\n## General info\n\n> I work for an e-commerce company. We need to build flexible pages. So we define a light UI protocol, and implement on Android and iOS. We can dynamic update App UIs by pushing a json file. With this ability, we can do some UI A\u002FB testing without publishing App to app store. Flutter allows you to build beautiful native apps on iOS and Android from a single codebase, it can allow you to build web app later. Flutter's hot reload helps you quickly and easily experiment, build UIs, add features, and fix bugs faster. But it still build native app, the UIs can't be dynamic updated. If you want to modify the UIs, you need to publish the updated app to app store. With this project, you can build your UIs from a json string, which is the UI protocol. The json string is very similar with the Flutter widget dart code. All widget type and widget properties are the same.\n\n\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fraw\u002Fmaster\u002Fimg\u002FSample.png\" width=\"800\">\n\nWidget type will be a type property, and widget's properties will be the json properties too. All properties and their values will be almost the same. You can checkout the following document.\n\n[Currently support flutter widgets and properties](WIDGETS.md)\n\n## Screenshots\n\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fraw\u002Fmaster\u002Fimg\u002Fdemo1.gif\" width=\"400\">\n\n## Install\n#### 1. Depend on it\nAdd this to your package's pubspec.yaml file:\n```\ndependencies:\n  dynamic_widget: ^6.0.0\n```\n\n#### 2. Install it\nYou can install packages from the command line:\n\nwith Flutter:\n```\n$ flutter packages get\n```\n\nAlternatively, your editor might support `flutter packages get`. Check the docs for your editor to learn more.\n\n#### 3. Import it\nNow in your Dart code, you can use:\n```dart\nimport 'package:dynamic_widget\u002Fdynamic_widget.dart';\n```\n\n## Get started\nYou should use `DynamicWidgetBuilder().build` method to covert a json string into flutter widget. It will be time-consuming. so you'd better using `FutureBuilder` to build the UI.\n\n```dart\nimport 'package:dynamic_widget\u002Fdynamic_widget.dart';\n\nclass PreviewPage extends StatelessWidget {\n  final String jsonString;\n\n  PreviewPage(this.jsonString);\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        \u002F\u002F Here we take the value from the MyHomePage object that was created by\n        \u002F\u002F the App.build method, and use it to set our appbar title.\n        title: Text(\"Preview\"),\n      ),\n      body: FutureBuilder\u003CWidget?>(\n        future: _buildWidget(context),\n        builder: (BuildContext context, AsyncSnapshot\u003CWidget?> snapshot) {\n          if (snapshot.hasError) {\n            print(snapshot.error);\n          }\n          return snapshot.hasData\n              ? SizedBox.expand(\n                  child: snapshot.data,\n                )\n              : Text(\"Loading...\");\n        },\n      ),\n    );\n  }\n\n  Future\u003CWidget?> _buildWidget(BuildContext context) async {\n    return DynamicWidgetBuilder.build(\n        jsonString, context, DefaultClickListener());\n  }\n}\n```\n## How to implement a WidgetParser\n1. You need to implement the `WidgetParser` abstract class.\n2. Add new created WidgetParser by `DynamicWidgetBuilder.addParser(WidgetParser parser)` method.\n\nThis is a RaisedButton widget parser.\n```dart\nimport 'package:dynamic_widget\u002Fdynamic_widget\u002Futils.dart';\nimport 'package:dynamic_widget\u002Fdynamic_widget.dart';\nimport 'package:flutter\u002Fmaterial.dart';\n\nclass RaisedButtonParser extends WidgetParser {\n  @override\n  String get widgetName => \"RaisedButton\";\n\n  @override\n  Widget parse(Map\u003CString, dynamic> map, BuildContext buildContext, ClickListener listener) {\n    String clickEvent =\n        map.containsKey(\"click_event\") ? map['click_event'] : \"\";\n\n    var raisedButton = RaisedButton(\n      color: map.containsKey('color') ? parseHexColor(map['color']) : null,\n      disabledColor: map.containsKey('disabledColor')\n          ? parseHexColor(map['disabledColor'])\n          : null,\n      disabledElevation:\n          map.containsKey('disabledElevation') ? map['disabledElevation']?.toDouble() : 0.0,\n      disabledTextColor: map.containsKey('disabledTextColor')\n          ? parseHexColor(map['disabledTextColor'])\n          : null,\n      elevation: map.containsKey('elevation') ? map['elevation']?.toDouble() : 0.0,\n      padding: map.containsKey('padding')\n          ? parseEdgeInsetsGeometry(map['padding'])\n          : null,\n      splashColor: map.containsKey('splashColor')\n          ? parseHexColor(map['splashColor'])\n          : null,\n      textColor:\n          map.containsKey('textColor') ? parseHexColor(map['textColor']) : null,\n      child: DynamicWidgetBuilder.buildFromMap(map['child'], buildContext, listener),\n      onPressed: () {\n        listener.onClicked(clickEvent);\n      },\n    );\n\n    return raisedButton;\n  }\n}\n```\n\nAdd it to parsers list.\n```dart\nDynamicWidgetBuilder.addParser(RaisedButtonParser());\n```\n## How to add a click listener\nAdd \"click_event\" property to your widget json definition. for example:\n```dart\nvar raisedButton_json =\n'''\n{\n  \"type\": \"Container\",\n  \"alignment\": \"center\",\n  \"child\": {\n    \"type\": \"RaisedButton\",\n    \"color\": \"##FF00FF\",\n    \"padding\": \"8,8,8,8\",\n    \"textColor\": \"#00FF00\",\n    \"elevation\" : 8.0,\n    \"splashColor\" : \"#00FF00\",\n    \"click_event\" : \"route:\u002F\u002FproductDetail?goods_id=123\",\n    \"child\" : {\n      \"type\": \"Text\",\n      \"data\": \"I am a button\"\n    }\n  }\n}\n'''\n```\n\nWe suggest you'd better to use an URI to define the event, as the exmaple, it's a event for going to a product detail page.\n\nThen, define a ClickListener\n```dart\nclass DefaultClickListener implements ClickListener{\n  @override\n  void onClicked(String event) {\n    print(\"Receive click event: \" + event);\n  }\n}\n```\n\nFinally, pass the listener to build method.\n```dart\n  Future\u003CWidget> _buildWidget() async{\n\n    return DynamicWidgetBuilder.build(jsonString, buildContext, new DefaultClickListener());\n  }\n```\n\n## How to write the json code\nYou don't need to write the json code by hand, you can export your flutter code to json code efficiently with DynamicWidgetJsonExportor widget. You just need to wrap your flutter code with DynamicWidgetJsonExportor widget, then invoke its `exportJsonString()` method, look at following example, click the \"export\" button, it will find the DynamicWidgetJsonExportor widget, and export its child to json code efficiently.\n\n```dart\nclass _JSONExporterState extends State\u003CJSONExporter> {\n  GlobalKey key = GlobalKey();\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        \u002F\u002F Here we take the value from the MyHomePage object that was created by\n        \u002F\u002F the App.build method, and use it to set our appbar title.\n        title: Text(\"export example\"),\n      ),\n      body: Builder(\n        builder: (context) => Column(\n          children: [\n            Expanded(\n              child: DynamicWidgetJsonExportor(\n                key: key,\n                child: Container(\n                  child: GridViewWidget(\n                      GridViewParams(\n                          mainAxisSpacing: 2.0,\n                          crossAxisSpacing: 2.0,\n                          crossAxisCount: 2,\n                          childAspectRatio: 1.6,\n                          padding: EdgeInsets.all(10.0),\n                          pageSize: 10,\n                          children: [\n                            ListTile(\n                              leading: Text(\"Leading text\"),\n                              title: Text(\"title\"),\n                              subtitle: Text(\"subtitle\"),\n                            ),\n                            ListTile(\n                              leading: Text(\"Leading text\"),\n                              title: Text(\"title\"),\n                              subtitle: Text(\"subtitle\"),\n                            )\n                          ]),\n                      context),\n                ),\n              ),\n            ),\n            RaisedButton(\n              child: Text(\"Export\"),\n              onPressed: () {\n                var exportor = key.currentWidget as DynamicWidgetJsonExportor;\n                var exportJsonString = exportor.exportJsonString();\n                Scaffold.of(context).showSnackBar(SnackBar(\n                    content: Text(\"json string was exported to editor page.\")));\n                Future.delayed(Duration(seconds: 3), (){\n                  Navigator.push(\n                      context,\n                      MaterialPageRoute(\n                          builder: (context) =>\n                              CodeEditorPage(exportJsonString)));\n                });\n              },\n            )\n          ],\n        ),\n      ),\n    );\n  }\n}\n```\nYou can use whatever your favorite IDE to build the UI, then use DynamicWidgetJsonExportor to export to json code. For detail, please check the Dynamic Widget Demo source code.\n\n\u003Cimg src=\".\u002Fimg\u002Fexport.gif\" width=\"320\">\n\n## Logic Dynamicization\n\nBy using `DynamicWidget`, you can pass JavaScript code(string) as parameters to achieve dynamic UI and logic in the app.\n\n```dart\nimport 'package:dynamic_widget\u002Fdynamic_widget.dart';\nimport 'package:flutter\u002Fmaterial.dart';\nimport 'package:flutter\u002Fservices.dart';\n\nclass MyHomePage extends StatefulWidget {\n  const MyHomePage({super.key, required this.title});\n\n  final String title;\n\n  @override\n  State\u003CMyHomePage> createState() => _MyHomePageState();\n}\n\nclass _MyHomePageState extends State\u003CMyHomePage> {\n  late Future\u003CString> _uiFuture;\n\n  @override\n  void initState() {\n    super.initState();\n    _uiFuture = rootBundle.loadString(\"assets\u002Fui.js\");\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        backgroundColor: Theme.of(context).colorScheme.inversePrimary,\n        title: Text(widget.title),\n      ),\n      body: Center(\n        child: FutureBuilder\u003CString>(\n          future: _uiFuture,\n          builder: (context, snapshot) {\n            if (snapshot.connectionState == ConnectionState.waiting) {\n              return const SizedBox();\n            } else if (snapshot.hasError) {\n              return Text('Error: ${snapshot.error}');\n            }\n            return DynamicWidget(snapshot.data!);\n          }\n        )\n      )\n    );\n  }\n}\n```\n\nLet's look at a calculator example. The js code can be divided into three parts:\n\n1. The calculator's buttons (grid widget) `grid_app` are generated through the `buttons` array.\n\n```js\nconst buttons = [\n    { label: '+', event: \"op('add')\" },\n    { label: '-', event: \"op('sub')\" },\n    { label: 'x', event: \"op('mul')\" },\n    { label: '÷', event: \"op('div')\" },\n    { label: '1', event: \"digit(1)\" },\n    { label: '2', event: \"digit(2)\" },\n    { label: '3', event: \"digit(3)\" },\n    { label: 'C', event: \"clear()\" },\n    { label: '4', event: \"digit(4)\" },\n    { label: '5', event: \"digit(5)\" },\n    { label: '6', event: \"digit(6)\" },\n    { label: '0', event: \"digit(0)\" },\n    { label: '7', event: \"digit(7)\" },\n    { label: '8', event: \"digit(8)\" },\n    { label: '9', event: \"digit(9)\" },\n    { label: '=', event: \"equal()\" }\n];\n\nconst grid_app = {\n    \"type\": \"GridView\",\n    \"crossAxisCount\": 4,\n    \"padding\": \"10, 10, 10, 10\",\n    \"mainAxisSpacing\": 4.0,\n    \"crossAxisSpacing\": 4.0,\n    \"childAspectRatio\": 1.6,\n    \"children\": buttons.map(button => ({\n        \"type\": \"TextButton\",\n        \"child\": {\n            \"type\": \"Text\",\n            \"data\": button.label,\n            \"style\": {\n                \"fontSize\": 30.0\n            }\n        },\n        \"click_event\": button.event\n    }))\n};\n```\n\n2. In **DynamicWidget**, the `App` object describes the structure of the UI. Dynamically modifying components involves changing the properties of the `App` object. In the `App`, the text component and `grid_app` are assembled to form the complete calculator UI.\n\n```js\nApp =\n{\n    \"type\": \"Column\",\n    \"crossAxisAlignment\": \"end\",\n    \"mainAxisAlignment\": \"end\",\n    \"mainAxisSize\": \"max\",\n    \"textBaseline\": \"alphabetic\",\n    \"textDirection\": \"ltr\",\n    \"verticalDirection\": \"down\",\n    \"children\": [{\n        \"type\": \"Text\",\n        \"data\": \"\",\n    }, {\n        \"type\": \"Text\",\n        \"data\": \"          \",\n        \"maxLines\": 3,\n        \"overflow\": \"ellipsis\",\n        \"style\": {\n            \"color\": \"#000000\",\n            \"fontSize\": 40.0,\n            \"fontWeight\": \"bold\",\n        }\n    },\n    {\n        \"type\": \"Expanded\",\n        \"child\": grid_app\n    }]\n}\n```\n\n3. The calculator’s computation logic is completed through functions such as `clear`, `digit`, and `equal`.\n\n```js\nvar _pending = 0;\nvar _pendingOp = 'none';\nvar _display = 0;\nvar _displayLocked = false;\nvar _afterEquals = false;\n\nfunction _resolve() {\n    if (_pendingOp === 'add') {\n        _display = _pending + _display;\n    } else if (_pendingOp === 'sub') {\n        _display = _pending - _display;\n    } else if (_pendingOp === 'mul') {\n        _display = _pending * _display;\n    } else if (_pendingOp === 'div') {\n        _display = _pending \u002F _display;\n    }\n    _pendingOp = 'none';\n}\n\nfunction clear() {\n    _pending = 0;\n    _pendingOp = 'none';\n    _display = 0;\n    _displayLocked = false;\n    _afterEquals = false;\n    App.children[1].data = \"\"\n}\n\nfunction digit(n) {\n    if (_displayLocked || _afterEquals) {\n        _display = 0;\n        _displayLocked = false;\n        _afterEquals = false;\n    }\n    _display = _display * 10 + n;\n    App.children[1].data = _display + \"          \";\n}\n\nfunction op(operation) {\n    _resolve();\n    if (_afterEquals) {\n        _pending = _display;\n        _afterEquals = false;\n    } else {\n        _pending = _display;\n    }\n    _pendingOp = operation;\n    _display = 0;\n    _displayLocked = false;\n    App.children[1].data = (operation === 'add' ? '+' : operation === 'sub' ? '-' : operation === 'mul' ? 'x' : '÷') + \"          \";\n}\n\nfunction equal() {\n    _resolve();\n    _pending = _display;\n    _displayLocked = true;\n    _afterEquals = true;\n    App.children[1].data = _display + \"          \";\n}\n```\n\nUpon running `example_js`, you will see:\n\n\u003Cimg src=\"https:\u002F\u002Fmoluopro.atomgit.net\u002Fweb\u002Fapplet\u002Fcalculator.png\" style=\"width: 60%;\" alt=\"calculator\">\n\n## Widget Documents\nAlready completed widgets:\n* [Container](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#container-widget)\n* [Text](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#text-widget)\n* [TextSpan](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#textspan)\n* [TextStyle](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#textstyle)\n* [RaisedButton](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#raisedbutton-widget)\n* [ElevatedButton](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#elevatedbutton-widget)\n* [TextButton](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#textbutton-widget)\n* [Row](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#row-widget)\n* [Column](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#column-widget)\n* [AssetImage](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#assetimage-widget)\n* [NetworkImage](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#networkimage-widget)\n* [FileImage](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#fileimage-widget)\n* [Placeholder](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#placeholder-widget)\n* [GridView](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#gridview-widget)\n* [ListView](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#listview-widget)\n* [PageView](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#pageview-widget)\n* [Expanded](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#expanded-widget)\n* [Padding](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#padding-widget)\n* [Center](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#center-widget)\n* [Align](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#align-widget)\n* [AspectRatio](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#aspectratio-widget)\n* [FittedBox](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#fittedbox-widget)\n* [Baseline](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#baseline-widget)\n* [Stack](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#stack-widget)\n* [Positioned](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#positioned-widget)\n* [IndexedStack](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#indexedstack-widget)\n* [ExpandedSizedBox](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#expandedsizedbox-widget)\n* [SizedBox](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#sizedbox-widget)\n* [Opacity](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#opacity-widget)\n* [Wrap](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#wrap-widget)\n* [ClipRRect](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#cliprrect-widget)\n* [SafeArea](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#safearea-widget)\n* [SelectableText](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#selectabletext-widget)\n* [Icon](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#icon-widget)\n* [DropCapText](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#dropcaptext-widget)\n* [Scaffold](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#scaffold-widget)\n* [AppBar](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#appbar-widget)\n* [LimitedBox](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#limitedbox-widget)\n* [Offstage](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#offstage-widget)\n* [OverflowBox](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#overflowbox-widget)\n* [Divider](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#divider-widget)\n* [RotatedBox](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#rotatedbox-widget)\n* [SingleChildScrollView](https:\u002F\u002Fgithub.com\u002Fdengyin2000\u002Fdynamic_widget\u002Fblob\u002Fmaster\u002FWIDGETS.md#singlechildscrollview-widget)\n\nYou can view [Currently support widgets and properties](WIDGETS.md) here.\n\n## Code Examples\nCheckout this project and run demo.\n\n## Contact\nCreated by [@deng.yin@gmail.com](https:\u002F\u002Fwww.jianshu.com\u002Fu\u002Fefa51344ce61) - feel free to contact me\n","dynamic_widget 是一个后端驱动的UI工具包，允许开发者通过JSON来构建动态UI，并且其JSON格式与Flutter widget代码非常相似。该项目支持将Flutter代码导出为JSON代码，同时兼容空安全特性以及Flutter Web应用。适合需要灵活页面构建和快速更新UI的应用场景，如电商行业中进行A\u002FB测试时无需重新发布应用即可更改界面布局。使用Dart语言编写，遵循Apache License 2.0开源协议。",2,"2026-06-11 03:22:10","top_language"]