createButtons method

List<Widget> createButtons(
  1. double innerCircleSize,
  2. double actualSize
)

Implementation

List<Widget> createButtons(double innerCircleSize, double actualSize) {
  /// [list] uses the literal instead of constructor due to null-safety
  List<Widget>? list = [];
  list.add(CircleView.padBackgroundCircle(
      actualSize,
      backgroundPadButtonsColor,
      backgroundPadButtonsColor != Colors.transparent
          ? Colors.black45
          : Colors.transparent,
      backgroundPadButtonsColor != Colors.transparent
          ? Colors.black12
          : Colors.transparent));

  for (var i = 0; i < buttons!.length; i++) {
    var padButton = buttons![i];
    list.add(createPositionedButtons(
      padButton,
      actualSize,
      i,
      innerCircleSize,
    ));
  }
  return list;
}