mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
changed the hint text style in create space
This commit is contained in:
@ -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,
|
||||
|
@ -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
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user