mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-02-02 14:16:58 +00:00
fix(user): Replace cubit context read with state variable on login page
This commit is contained in:
parent
465af52350
commit
f4e588c435
|
@ -418,6 +418,14 @@ class InitializingPage extends StatelessWidget {
|
|||
'initializing.enter_nickname_and_password'.tr(),
|
||||
),
|
||||
const Spacer(),
|
||||
if (formCubitState.isErrorShown)
|
||||
Text(
|
||||
'users.username_rule'.tr(),
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.error,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
CubitFormTextField(
|
||||
formFieldCubit: context.read<RootUserFormCubit>().userName,
|
||||
textAlign: TextAlign.center,
|
||||
|
|
|
@ -55,7 +55,7 @@ class NewUser extends StatelessWidget {
|
|||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (context.read<UserFormCubit>().state.isErrorShown)
|
||||
if (formCubitState.isErrorShown)
|
||||
Text(
|
||||
'users.username_rule'.tr(),
|
||||
style: TextStyle(
|
||||
|
|
Loading…
Reference in a new issue