changed the hint text style in create space

This commit is contained in:
hannathkadher
2024-10-09 12:14:39 +04:00
parent 5d440a2b9e
commit e35ea8e34a
2 changed files with 12 additions and 4 deletions

View File

@ -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<SpaceManagementState> emit,
) async {
final previousState = state;
emit(SpaceManagementLoading());
final previousState = state;
emit(SpaceManagementLoading());
try {
CommunityModel? newCommunity = await _api.createCommunity(
event.name,
event.description,

View File

@ -79,6 +79,13 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
),
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<CreateSpaceDialog> {
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
}
},