showToast static method

void showToast(
  1. BuildContext context,
  2. String? message, {
  3. int? gravity,
})

Implementation

static void showToast(
  BuildContext context,
  String? message, {
  int? gravity,
}) {
  Toast.show(
    message,
    context,
    duration: Toast.lengthLong,
    gravity: gravity ?? Toast.bottom,
    textStyle: TextStyle(
      color: ApTheme.of(context).toastText,
    ),
    backgroundColor: ApTheme.of(context).toastBackground,
  );
}