mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
refactor: Remove 'unused' warnings
This commit is contained in:
parent
b26e22cd4e
commit
b53bb6d4dd
|
@ -7,16 +7,11 @@ import 'package:selfprivacy/logic/cubit/forms/validations/validations.dart';
|
|||
|
||||
class DnsProviderFormCubit extends FormCubit {
|
||||
DnsProviderFormCubit(this.initializingCubit) {
|
||||
//final RegExp regExp = initializingCubit.getDnsProviderApiTokenValidation();
|
||||
apiKey = FieldCubit(
|
||||
initalValue: '',
|
||||
validations: [
|
||||
RequiredStringValidation('validations.required'.tr()),
|
||||
/*ValidationModel<String>(
|
||||
regExp.hasMatch,
|
||||
'validations.invalid_format'.tr(),
|
||||
),*/
|
||||
//LengthStringNotEqualValidation(40)
|
||||
LengthStringNotEqualValidation(40)
|
||||
],
|
||||
);
|
||||
|
||||
|
|
|
@ -181,10 +181,7 @@ class InitializingPage extends StatelessWidget {
|
|||
BlocProvider(
|
||||
create: (final context) => DnsProviderFormCubit(initializingCubit),
|
||||
child: Builder(
|
||||
builder: (final context) {
|
||||
final formCubitState = context.watch<DnsProviderFormCubit>().state;
|
||||
|
||||
return Column(
|
||||
builder: (final context) => Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Image.asset(
|
||||
|
@ -221,8 +218,7 @@ class InitializingPage extends StatelessWidget {
|
|||
title: 'initializing.how'.tr(),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue