diff --git a/lib/pages/spaces_management/bloc/space_management_bloc.dart b/lib/pages/spaces_management/bloc/space_management_bloc.dart index 00498e29..c8b683a3 100644 --- a/lib/pages/spaces_management/bloc/space_management_bloc.dart +++ b/lib/pages/spaces_management/bloc/space_management_bloc.dart @@ -1,3 +1,4 @@ + import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:syncrow_web/pages/spaces_management/model/community_model.dart'; @@ -73,11 +74,10 @@ class SpaceManagementBloc CreateCommunityEvent event, Emitter emit, ) async { - final previousState = state; - emit(SpaceManagementLoading()); + final previousState = state; + emit(SpaceManagementLoading()); try { - CommunityModel? newCommunity = await _api.createCommunity( event.name, event.description, diff --git a/lib/pages/spaces_management/view/dialogs/create_space_dialog.dart b/lib/pages/spaces_management/view/dialogs/create_space_dialog.dart index 4ad0b129..98babca8 100644 --- a/lib/pages/spaces_management/view/dialogs/create_space_dialog.dart +++ b/lib/pages/spaces_management/view/dialogs/create_space_dialog.dart @@ -79,6 +79,13 @@ class CreateSpaceDialogState extends State { ), decoration: InputDecoration( hintText: 'Please enter the name', + hintStyle: const TextStyle( + fontSize: 13, // Set your desired font size + color: ColorsManager.lightGrayColor + , // Optional: Change the color of the hint text + fontWeight: + FontWeight.w400, // Optional: Adjust the font weight + ), filled: true, fillColor: const Color(0xFFF5F6F7), border: OutlineInputBorder( @@ -119,7 +126,8 @@ class CreateSpaceDialogState extends State { child: DefaultButton( onPressed: () { if (enteredName.isNotEmpty) { - widget.onCreateSpace(enteredName, selectedIcon); // Pass name and icon back + widget.onCreateSpace( + enteredName, selectedIcon); // Pass name and icon back Navigator.of(context).pop(); // Close dialog } },