buildContent method

  1. @override
Widget buildContent(
  1. BuildContext context
)

Builds the primary contents of the route.

Implementation

@override
Widget buildContent(BuildContext context) {
  final double bottomPadding = MediaQuery.sizeOf(context).height * _kTopGapRatio;

  return MediaQuery.removePadding(
    context: context,
    removeTop: true,
    removeBottom: true,
    child: Padding(
      padding: EdgeInsets.only(bottom: bottomPadding),
      child: CupertinoUserInterfaceLevel(
        data: CupertinoUserInterfaceLevelData.elevated,
        child: _CupertinoSheetScope(child: builder(context)),
      ),
    ),
  );
}