bottonControlsPanel static method

Widget bottonControlsPanel(
  1. Widget bottomContainer,
  2. BuildContext context, {
  3. double widgetHeight = 70.0,
  4. double widgetWidth = 0.6,
})

Implementation

static Widget bottonControlsPanel(Widget bottomContainer, BuildContext context, {double widgetHeight = 70.0, double widgetWidth = 0.6}) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.spaceBetween,
    children: <Widget>[
      if (!DynamoCommons.isMobile(context))
        SizedBox(
          width: MediaQuery.of(context).size.width * 0.2,
        ),
      SizedBox(
        height: widgetHeight,
        width: MediaQuery.of(context).size.width * (DynamoCommons.isMobile(context) ? 1.0 : widgetWidth),
        child: bottomContainer,
      ),
      if (!DynamoCommons.isMobile(context))
        SizedBox(
          width: MediaQuery.of(context).size.width * 0.2,
        ),
    ],
  );
}