addVerticalOverlays method

void addVerticalOverlays(
  1. Size size
)

Implementation

void addVerticalOverlays(Size size) {
  overlays.addEntry('verticalController', (_, game) {
    return Stack(
      children: [
        Positioned(
          right: 0,
          top: options.horizontalControllerHeight,
          bottom: 10,
          child: ListenableBuilder(
            listenable: algorithm.$size,
            builder: (context, child) {
              return ConstrainedBox(
                constraints: BoxConstraints(
                  maxHeight: size.height,
                  maxWidth: options.verticalControllerWidth,
                ),
                child: Listener(
                  behavior: HitTestBehavior.opaque,
                  child: SingleChildScrollView(
                    scrollDirection: Axis.vertical,
                    child: Padding(
                      padding: const EdgeInsets.only(right: 8.0),
                      child: ClipRRect(
                        borderRadius: BorderRadius.circular(12),
                        child: ColoredBox(
                          color: Colors.grey.withOpacity(0.1),
                          child: Padding(
                            padding: const EdgeInsets.fromLTRB(16, 12, 0, 12),
                            child: Column(
                              children: algorithm.verticalOverlays(
                                    world: world,
                                    rootAlg: algorithm,
                                    graphComponent: this,
                                  ) ??
                                  [],
                            ),
                          ),
                        ),
                      ),
                    ),
                  ),
                ),
              );
            },
          ),
        )
      ],
    );
  });
  // overlays.add('verticalController');
}