dynamic_widget 1.0.3 dynamic_widget: ^1.0.3 copied to clipboard
You can dynamic update your flutter page with Flutter Dynamic Widget. It's a light json UI protocol, which is very similar with flutter widget code. So you don't need to learn another UI protocol, if [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dynamic_widget
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
dynamic_widget: ^1.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dynamic_widget/dynamic_widget.dart';