show method

dynamic show([
  1. String? text
])

Implementation

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

  showDialog<String>(
    context: globalKey.currentContext!,
    builder: (BuildContext context) => const Scaffold(
      backgroundColor: Color.fromRGBO(0, 0, 0, 0),
      body: Center(
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            CircularProgressIndicator(
              semanticsLabel: 'Linear progress indicator',
            ),
          ],
        ),
      ),
    ),
  );
}