jpl_child_builder 2.0.3 copy "jpl_child_builder: ^2.0.3" to clipboard
jpl_child_builder: ^2.0.3 copied to clipboard

A very simple builder that can be used by UI frameworks to customize / wrap internal widgets.

🛡️ Fork — Jeff Peiffer Legacy (jpl_) #

Este paquete (jpl_child_builder) es un fork de child_builder, originalmente creado por Jeff Peiffer y archivado (read-only) junto con toda la org peiffer-innovations.

El prefijo jpl_ significa Jeff Peiffer Legacy: mantenemos vivo el legado de estos paquetes, bumpeados a las últimas versiones de Dart/Flutter, en el monorepo jpl.

Licencia original conservada. El crédito del diseño y la implementación original es de Jeff Peiffer.

I'm done

Table of Contents

child_builder #

A builder that provides the ability for UI frameworks to wrap inner widgets so that they can be customized either for look & feel or to assist with things like automated or unit testing.

Using the library #

Add the repo to your Flutter pubspec.yaml file.

dependencies:
  child_builder: <<version>> 

Then run...

flutter packages get

Example #

class MyUiFramework extends StatelessWidget {
  MyUiFramework({
    this.childWidgetBuilder;
  }): super(key: key);

  final ChildWidgetBuilder childWidgetBuilder;

  @override
  Widget build(BuildContext context) {
    return ChildBuilder(
      builder: childWidgetBuilder,
      child: MySpiffyUiWidget(),
    );
  }
}


class SomeoneElseWhoUsesMyUiFramework extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MyUiFramework(
      childWidgetBuilder: (BuildContext context, Widget child) {
        return Container(
          // This would allow you to find by key this specific widget
          key: ValueKey('MySpiffyUiWidgetKey'),
          child: child,
        );
      }
    );
  }
}
0
likes
150
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A very simple builder that can be used by UI frameworks to customize / wrap internal widgets.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on jpl_child_builder