buildContent method
- BuildContext context
Builds the primary contents of the route.
Implementation
@override
Widget buildContent(BuildContext context) {
final double topPadding = MediaQuery.heightOf(context) * _kTopGapRatio;
return MediaQuery.removePadding(
context: context,
removeTop: true,
child: Padding(
padding: EdgeInsets.only(top: topPadding),
child: ClipRSuperellipse(
borderRadius: const BorderRadius.vertical(top: Radius.circular(12)),
child: CupertinoUserInterfaceLevel(
data: CupertinoUserInterfaceLevelData.elevated,
child: _CupertinoSheetScope(child: builder(context)),
),
),
),
);
}