widget_factory

Creator: coderz1093

Last updated:

0 purchases

widget_factory Image
widget_factory Images
Add to Cart

Description:

widget factory

widget_factory #
Flutter package providing factory abstract class for creating widgets.
Usage #
class CountWidgetFactoryData {
final int count;
CountWidgetFactoryData(this.count);
}

class ConutWidgetFactory implements WidgetFactory<CountWidgetFactoryData> {
@override
Widget createWidget({CountWidgetFactoryData? data}) {
final text = data?.count.toString() ?? '';
return Container(
child: Text('count: $text'),
);
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.