mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 10:06:16 +00:00
remove comment DevicesViewBody and fix home page
This commit is contained in:
@ -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()
|
||||
],
|
||||
),
|
||||
],
|
||||
|
Reference in New Issue
Block a user