buildFlexRowWidget function

Widget buildFlexRowWidget(
  1. {Widget leftWidget,
  2. Widget rightWidgetTopWidget,
  3. Widget rightBottomWidget,
  4. double divider}
)

获取以左侧为高度,右侧控件为上下对齐的布局

Implementation

Widget buildFlexRowWidget({Widget leftWidget, Widget rightWidgetTopWidget, Widget rightBottomWidget, double divider}){
  return IntrinsicHeight(
    child: Row(
      children: [
        leftWidget,
        Gaps.getHorizontal(divider),
        Expanded(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Expanded(
                child: rightWidgetTopWidget,
              ),
              rightBottomWidget
            ],
          ),
        )
      ],
    ),
  );
}