showEnrollInInternalBottomSheet static method

Future<void> showEnrollInInternalBottomSheet(
  1. BuildContext context
)

Implementation

static Future<void> showEnrollInInternalBottomSheet(
  BuildContext context,
) async {
  return showSmoothModalSheet<void>(
    context: context,
    builder: (BuildContext context) {
      final AppLocalizations appLocalizations = AppLocalizations.of(context);
      return SmoothModalSheet(
        title: appLocalizations.preferences_contribute_enroll_alpha,
        prefixIndicator: true,
        body: Column(
          children: <Widget>[
            Text(appLocalizations.contribute_enroll_alpha_warning),
            const SizedBox(height: LARGE_SPACE),
            SmoothSimpleButton(
              onPressed: () async => LaunchUrlHelper.launchURL(
                GlobalVars.appStore.getEnrollInBetaURL()!,
              ),
              minWidth: 150,
              child: Text(
                appLocalizations.okay.toUpperCase(),
                style: const TextStyle(fontWeight: FontWeight.bold),
              ),
            ),
          ],
        ),
      );
    },
  );
}