Compare commits

..

No commits in common. "7a757248c7488be13b631b5a0b4a491a4b337fe8" and "670fb7e0a6f035afc48fc263e1b59a9ebf9d62ea" have entirely different histories.

2 changed files with 22 additions and 0 deletions

View File

@ -1,6 +1,8 @@
import 'dart:convert';
import 'dart:io';
import 'package:oauth2/oauth2.dart' as oauth2;
import 'package:url_launcher/url_launcher.dart';
Future<String> getSessionCookie(oauth2.Client client) async {
final response0 = await client.get(

View File

@ -31,6 +31,22 @@ void main() {
);
}
void makeAlert(BuildContext context, String title, String message) {
showDialog<String>(
context: context,
builder: (BuildContext context) => AlertDialog(
title: Text(title),
content: Text(message),
actions: <Widget>[
TextButton(
onPressed: () => Navigator.pop(context, 'OK'),
child: const Text('OK'),
),
],
),
);
}
Future<OpenSSHEd25519KeyPair> generateKeyPair() async {
final algorithm = Ed25519();
@ -177,6 +193,10 @@ class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
final String outputText = _output.isNotEmpty
? 'Output: $_output'
: 'Press the button to run a command.';
final authentikApiState = context
.watch<AuthentikUserSettingsChangeDialogState>();