bottonControlsPanel static method
Widget
bottonControlsPanel(
- Widget bottomContainer,
- BuildContext context, {
- double widgetHeight = 70.0,
- 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,
),
],
);
}