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

PageBuilder

Introduction

The PageBuilder class is designed to facilitate the construction of material.Page elements in a Flutter application. This class extends the ElementBuilder class, providing a streamlined approach to building pages based on the application's requirements.

Class Definition

class PageBuilder extends ElementBuilder<material.Page> {
  PageBuilder(Application application) : super(application);

  @override
  material.Page build(Element element) {
    return application
        .make<PageBuilder>(element.type)
        .build(Element.fromJson(element.data));
  }
}
PreviousElementBuilderNextRouterConfigBuilder

Last updated 11 months ago