baseViewBuild abstract method

  1. @protected
Widget baseViewBuild(
  1. BuildContext context
)

Builds the actual view content.

Subclasses must override this method to define their UI structure. Access the controller through vm or controller.

Example:

@override
Widget baseViewBuild(BuildContext context) {
  return Scaffold(
    appBar: AppBar(title: Text('My View')),
    body: Obx(() => Text(vm.data.value)),
  );
}

Parameters:

  • context: The build context for this widget.

Returns the widget tree for this view.

Implementation

@protected
Widget baseViewBuild(BuildContext context);