iPhone16Pro top-level property

LdFrameOptions iPhone16Pro
final

Implementation

final iPhone16Pro = LdFrameOptions(
  label: 'iPhone16Pro',
  viewPaddig: EdgeInsets.only(top: 44, bottom: 34),
  width: 393,
  height: 852,
  targetPlatform: TargetPlatform.iOS,
  screenRadius: 55,
  devicePixelRatio: 3.0,
  build: (
    BuildContext context,
    Orientation orientation,
    Widget child,
    bool dark,
    SystemUiOverlayStyle navigationBarStyle,
  ) {
    final isPortrait = orientation == Orientation.portrait;

    return Stack(
      fit: StackFit.expand,
      children: [
        child,
        if (isPortrait) ...[
          Align(
            alignment: Alignment.topCenter,
            child: _StatusBar(
              style: navigationBarStyle,
            ),
          ),
          Align(
            alignment: Alignment.topCenter,
            child: _DynamicIsland(orientation: orientation),
          ),
          Align(
            alignment: Alignment.bottomCenter,
            child: _HomeIndicator(
              dark: dark,
            ),
          ),
        ] else ...[
          Align(
            alignment: Alignment.centerLeft,
            child: _DynamicIsland(orientation: orientation),
          ),
          Align(
            alignment: Alignment.bottomCenter,
            child: _HomeIndicator(
              dark: dark,
            ),
          ),
        ],
      ],
    );
  },
);