attach method

  1. @override
Widget? attach(
  1. BuildContext context,
  2. T controller
)
override

Implementation

@override
Widget? attach(BuildContext context, T controller) {
  return SizedBox(
    width: double.infinity,
    height: double.infinity,
    child: Stack(
      alignment: Alignment.center,
      children: [
        AxisView(
          x: controller.axisX,
          y: controller.axisY,
          child: controller.content,
        ),
        Positioned(
          bottom: 0,
          child: controller.footer ?? const SizedBox(),
        ),
      ],
    ),
  );
}