showConnectionTypeInfoDialog function

void showConnectionTypeInfoDialog(
  1. BuildContext context, {
  2. Color? infoTileColor,
  3. String? popupStatusString,
  4. String? thisDataPlanPopUpString,
  5. required String bodyText,
})

Implementation

void showConnectionTypeInfoDialog(
  BuildContext context, {
  Color? infoTileColor,
  String? popupStatusString,
  String? thisDataPlanPopUpString,
  required String bodyText,
}) async {
  await showDialog(
    context: context,
    builder: (context) => AlertDialog(
      contentTextStyle: context.textTheme.titleSmall,
      title: DialogTitle(
        child: Text(
          context.sharedL10n.connectionInformation,
          style: context.textTheme.bodyLarge!,
        ),
      ),
      content: Column(
        mainAxisSize: MainAxisSize.min,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text.rich(
            TextSpan(
              children: [
                TextSpan(
                  text: thisDataPlanPopUpString,
                ),
                TextSpan(
                  text: popupStatusString,
                  style: context.textTheme.labelLarge!.copyWith(
                    fontSize: 16,
                    fontWeight: FontWeight.bold,
                    color: infoTileColor,
                  ),
                ),
              ],
            ),
          ),
          const SizedBox(height: 12.0),
          Text(bodyText),
        ],
      ),
    ),
  );
}