showDonationBottomSheet static method

void showDonationBottomSheet(
  1. BuildContext context
)

Shows a bottom sheet with the title translated to "Donate" and a DonationSheetContent as its child in the given context.

The bottom sheet is scrollable, has a top border radius of 14 logical pixels, uses the root navigator, and is dismissible.

The DonationSheetContent is displayed within a ClipRRect with a circular corner radius of 14 logical pixels.

The DonationSheetContent is wrapped in a Column with a Padding widget to add horizontal padding and a Wrap widget to stack the title and the child vertically.

The DonationSheetContent is also wrapped in a SingleChildScrollView to make the bottom sheet scrollable.

The DonationSheetContent is displayed at the bottom of the screen with a padding of 16 logical pixels.

The DonationSheetContent is also padded with a Padding widget to add a bottom padding of 16 logical pixels.

Implementation

static void showDonationBottomSheet(final BuildContext context) {
  showBottomSheet(
    context,
    AppLocalizations.of(context)!.donate,
    child: const DonationSheetContent(),
  );
}