build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Builds the main logger overlay widget. It uses Obx to dynamically update the UI based on the controller's state.

Implementation

@override
Widget build(BuildContext context) {
  return Directionality(
    textDirection: TextDirection.ltr, // Always LTR as logs are in English.
    child: Obx(
      () => Align(
        alignment: AlignmentDirectional.centerEnd,
        child: Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            _buildLogToggleButton(),
            // Toggle button for the logger overlay.
            if (_controller.isExpanded.value) _buildLoggerView(),
            // Logger view.
          ],
        ),
      ),
    ),
  );
}