showDefault static method

void showDefault({
  1. required BuildContext context,
  2. required String title,
  3. required String content,
})

Implementation

static void showDefault({
  required BuildContext context,
  required String title,
  required String content,
}) {
  showDialog(
    context: context,
    builder: (BuildContext context) => DefaultDialog(
      title: title,
      contentWidget: Text(
        content,
        style: TextStyle(
          color: ApTheme.of(context).grey,
          height: 1.3,
          fontSize: 16.0,
        ),
      ),
      actionText: ApLocalizations.of(context).iKnow,
      actionFunction: () {
        Navigator.of(context, rootNavigator: true).pop();
      },
    ),
  );
}