INNER CODE UNIT · Dart

alert

Clancey/simple_auth · simple_auth_flutter_example/lib/main.dart:362

    var alert = new AlertDialog(content: new Text(text), actions: <Widget>[
      new TextButton(
          child: const Text("Ok"),
          onPressed: () {
            Navigator.pop(context);
          })
    ]);
    showDialog(context: context, builder: (BuildContext context) => alert);
  }

  void login(simpleAuth.AuthenticatedApi api) async {
    try {
      var success = await api.authenticate();
      showMessage("Logged in success: $success");
    } catch (e) {
      showError(e);
    }
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…