Merge pull request #158 from WDI-Ideas/confaug22

bugs fixed for some pages
This commit is contained in:
Shubham Shetty
2024-08-23 19:22:34 +05:30
committed by GitHub
3 changed files with 30 additions and 21 deletions

View File

@@ -851,26 +851,24 @@ class _LatestTabState extends State<LatestTab> {
),
),
commonobjmodel!.data.isEmpty
? Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Center(
child: Column(
children: [
Text(
"No Post Available",
style: TextStyle(
color: Colors.white,
fontSize: 16.sp,
fontWeight: FontWeight.w600),
)
],
),
),
],
? Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Center(
child: Column(
children: [
Text(
"No Post Available",
style: TextStyle(
color: Colors.white,
fontSize: 16.sp,
fontWeight: FontWeight.w600),
)
],
),
),
)
],
)
: Column(
children: [
sizedBoxHeight(20.h),

View File

@@ -4,6 +4,7 @@ import 'dart:io';
import 'package:dio/dio.dart';
import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart' hide MultipartFile, FormData;
import 'package:regroup/Common/CommonGlassmorphism.dart';
@@ -625,6 +626,10 @@ class _EditCommunityState extends State<EditCommunity> {
}
return null;
},
inputFormatters: [
RemoveEmojiInputFormatter(),
FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]'))
],
hintText: 'Enter type of community',
),
sizedBoxHeight(25.h),
@@ -633,6 +638,10 @@ class _EditCommunityState extends State<EditCommunity> {
CustomTextFormField(
// maxlines: 3,
hintText: 'Enter description',
inputFormatters: [
RemoveEmojiInputFormatter(),
// FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]'))
],
textEditingController: descriptionController,
),
sizedBoxHeight(25.h),
@@ -653,6 +662,7 @@ class _EditCommunityState extends State<EditCommunity> {
textEditingController: locationcontroller,
inputFormatters: [
RemoveEmojiInputFormatter(),
FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]'))
// FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]'))
],
hintText: 'Enter location',

View File

@@ -4,6 +4,7 @@ import 'dart:async';
import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart' hide MultipartFile, FormData;
import 'package:regroup/Common/CommonGlassmorphism.dart';
@@ -360,7 +361,7 @@ class _NewCommunityState extends State<NewCommunity> {
textEditingController: communitycontroller,
inputFormatters: [
RemoveEmojiInputFormatter(),
// FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]'))
FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]'))
],
hintText: 'Enter community name',
validator: (val) {
@@ -408,7 +409,7 @@ class _NewCommunityState extends State<NewCommunity> {
textEditingController: locationcontroller,
inputFormatters: [
RemoveEmojiInputFormatter(),
// FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]'))
FilteringTextInputFormatter.allow(RegExp('[a-zA-Z ]'))
],
hintText: 'Enter location',
validator: (val) {