FlutterPing
  • FlutterPing
  • The Basics
    • Installation
    • Basic Usage
  • Element Builder
    • ElementBuilder
    • PageBuilder
    • RouterConfigBuilder
    • WidgetBuilder
  • Executor
    • ActionExecutor
    • ElementExecutor
Powered by GitBook
On this page
  • Introduction
  • Class Definition
  1. Element Builder

WidgetBuilder

Introduction

The WidgetBuilder class is a crucial component designed to facilitate the building of material.Widget elements in a Flutter application. This class extends the ElementBuilder class, providing a streamlined approach to constructing widgets based on the application's requirements.

Class Definition

class WidgetBuilder extends ElementBuilder<material.Widget> {
  WidgetBuilder(Application application) : super(application);

  @override
  material.Widget build(Element element) {
    return application
        .make<WidgetBuilder>(element.type)
        .build(Element.fromJson(element.data));
  }
}
PreviousRouterConfigBuilderNextExecutor

Last updated 1 year ago