show method

dynamic show([
  1. String? text
])

Implementation

show([String? text]) {
  if (globalKey.currentContext == null) {
    return;
  }

  showDialog<String>(
      context: globalKey.currentContext!,
      builder: (BuildContext context) => Scaffold(
            backgroundColor: darkTheme ? Colors.black : Colors.white,
            body: Center(
              child: CircularProgressIndicator(
                color: darkTheme ? Colors.white : Colors.black,
              ),
            ),
          ));
}