remove comment DevicesViewBody and fix home page

This commit is contained in:
mohammad
2025-02-02 13:17:25 +03:00
parent c578d63134
commit 1189b52c57
6 changed files with 215 additions and 263 deletions

View File

@ -16,7 +16,8 @@ class CreateUnitWidget extends StatelessWidget {
TextEditingController textEditingController = TextEditingController();
return BlocConsumer<HomeCubit, HomeState>(
listener: (context, state) {
// if (state is ActivationError) {}
// if (state is ActivationError) {
// }
},
builder: (context, state) {
return SingleChildScrollView(
@ -101,10 +102,7 @@ class CreateUnitWidget extends StatelessWidget {
() {
Navigator.of(context).pop();
});
} else {
CustomSnackBar.displaySnackBar(
'Wrong code!');
}
}
},
icon: const Icon(
Icons.arrow_right_alt,
@ -113,14 +111,14 @@ class CreateUnitWidget extends StatelessWidget {
],
),
),
// state is ActivationError
// ? Text(
// state.errMessage,
// style: const TextStyle(
// color: ColorsManager.red,
// fontWeight: FontWeight.w400),
// )
// : const SizedBox()
state is ActivationError
? Text(
state.errMessage,
style: const TextStyle(
color: ColorsManager.red,
fontWeight: FontWeight.w400),
)
: const SizedBox()
],
),
],