mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-06 12:06:57 +00:00
26 lines
809 B
Dart
26 lines
809 B
Dart
|
import 'dart:async';
|
||
|
|
||
|
import 'package:cubit_form/cubit_form.dart';
|
||
|
import 'package:selfprivacy/logic/cubit/server_installation/server_installation_cubit.dart';
|
||
|
import 'package:selfprivacy/logic/cubit/forms/factories/field_cubit_factory.dart';
|
||
|
|
||
|
class RecoveryDeviceFormCubit extends FormCubit {
|
||
|
RecoveryDeviceFormCubit(
|
||
|
this.initializingCubit, final FieldCubitFactory fieldFactory) {
|
||
|
tokenField = fieldFactory.createServerDomainField();
|
||
|
|
||
|
super.addFields([tokenField]);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
FutureOr<void> onSubmit() async {
|
||
|
// initializingCubit.setDomain(ServerDomain(
|
||
|
// domainName: serverDomainField.state.value,
|
||
|
// provider: DnsProvider.Unknown,
|
||
|
// zoneId: ""));
|
||
|
}
|
||
|
|
||
|
final ServerInstallationCubit initializingCubit;
|
||
|
late final FieldCubit<String> tokenField;
|
||
|
}
|