fairphone6 top-level property
Implementation
final fairphone6 = LdFrameOptions(
label: 'Fairphone6',
viewPaddig: EdgeInsets.only(top: 28, bottom: 20),
width: 360,
height: 800,
platform: LdPlatform.android,
screenRadius: 24,
devicePixelRatio: 3.0,
build: (
BuildContext context,
Orientation orientation,
SystemUiOverlayStyle? systemUiOverlayStyle,
Widget child,
) {
final isPortrait = orientation == Orientation.portrait;
final dark = LdTheme.of(context).isDark;
return Stack(
fit: StackFit.expand,
children: [
child,
if (isPortrait) ...[
Align(
alignment: Alignment.topCenter,
child: _StatusBar(
style: systemUiOverlayStyle ?? SystemUiOverlayStyle.light,
),
),
Align(
alignment: Alignment.topCenter,
child: _DynamicIsland(orientation: orientation),
),
Align(
alignment: Alignment.bottomCenter,
child: _NavigationBar(
dark: dark,
),
),
] else ...[
Align(
alignment: Alignment.topCenter,
child: _StatusBar(
style: systemUiOverlayStyle ?? SystemUiOverlayStyle.light,
),
),
Align(
alignment: Alignment.centerLeft,
child: _DynamicIsland(orientation: orientation),
),
Align(
alignment: Alignment.bottomCenter,
child: _NavigationBar(
dark: dark,
),
),
],
],
);
},
);