buildNonFloatingPortraitLayout method
构建非浮动竖屏布局
Implementation
Widget buildNonFloatingPortraitLayout() {
final topConfig = config.components[LayoutPosition.top];
final centerConfig = config.components[LayoutPosition.center];
final bottomConfig = config.components[LayoutPosition.bottom];
return Column(
children: [
// Top component (non-floating)
if (topConfig != null && !topConfig.isFloating && topConfig.isShow)
buildComponentContainer(LayoutPosition.top, topConfig),
// Center area with left and right
Expanded(
child: Container(
color: Colors.white,
child: Row(
children: [
// Left component (non-floating)
if (config.components[LayoutPosition.left] != null &&
!config.components[LayoutPosition.left]!.isFloating &&
config.components[LayoutPosition.left]!.isShow)
buildComponentContainer(
LayoutPosition.left,
config.components[LayoutPosition.left]!,
),
// Center component
Expanded(
child:
centerConfig != null && centerConfig.isShow
? buildComponentContainer(
LayoutPosition.center,
centerConfig,
)
: Container(),
),
// Right component (non-floating)
if (config.components[LayoutPosition.right] != null &&
!config.components[LayoutPosition.right]!.isFloating &&
config.components[LayoutPosition.right]!.isShow)
buildComponentContainer(
LayoutPosition.right,
config.components[LayoutPosition.right]!,
),
],
),
),
),
// Bottom component (non-floating)
if (bottomConfig != null && !bottomConfig.isFloating && bottomConfig.isShow)
buildComponentContainer(LayoutPosition.bottom, bottomConfig),
],
);
}