mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 10:27:54 +00:00
updated add to room, and verify to space
This commit is contained in:
@@ -44,7 +44,8 @@ class JoinHomeView extends StatelessWidget {
|
||||
controller: textEditingController,
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Invitatoin code',
|
||||
hintStyle: context.bodyMedium.copyWith(color: Colors.grey),
|
||||
hintStyle:
|
||||
context.bodyMedium.copyWith(color: Colors.grey),
|
||||
border: InputBorder.none,
|
||||
),
|
||||
),
|
||||
@@ -52,10 +53,12 @@ class JoinHomeView extends StatelessWidget {
|
||||
IconButton(
|
||||
onPressed: () async {
|
||||
if (textEditingController.text.isEmpty) {
|
||||
CustomSnackBar.displaySnackBar('Please enter the invitation code');
|
||||
CustomSnackBar.displaySnackBar(
|
||||
'Please enter the invitation code');
|
||||
return;
|
||||
}
|
||||
if (await HomeCubit.getInstance().joinAUnit(textEditingController.text)) {
|
||||
if (await HomeCubit.getInstance()
|
||||
.joinAUnit(textEditingController.text)) {
|
||||
CustomSnackBar.displaySnackBar('Done successfully');
|
||||
Navigator.of(context).pop();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user