mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-15 07:53:13 +08:00
Fix sshkey custom comment
Custom comments had been implemented but were not working.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
const _platform = const MethodChannel('gitjournal.io/git');
|
||||
@ -29,11 +30,11 @@ Future<String> gitClone(String cloneUrl, String folderName) async {
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<String> generateSSHKeys({comment: ""}) async {
|
||||
print("generateSSHKeyss");
|
||||
Future<String> generateSSHKeys({@required String comment}) async {
|
||||
print("generateSSHKeyss: " + comment);
|
||||
try {
|
||||
String publicKey = await _platform.invokeMethod('generateSSHKeys', {
|
||||
comment: comment,
|
||||
'comment': comment,
|
||||
});
|
||||
print("Public Key " + publicKey);
|
||||
return publicKey;
|
||||
|
Reference in New Issue
Block a user