minor channges
This commit is contained in:
@@ -26,27 +26,26 @@ class NormalCardTile extends StatefulWidget {
|
||||
String forWhichTab;
|
||||
List<ReactionData> reactions;
|
||||
Map<int, ReactionData?> selectedReactions;
|
||||
bool? coachbool;
|
||||
bool? coachbool;
|
||||
|
||||
int currentIndex;
|
||||
NormalCardTile({
|
||||
Key? key,
|
||||
required this.tags,
|
||||
this.createAt,
|
||||
required this.forWhichTab,
|
||||
required this.commonObj,
|
||||
required this.reactions,
|
||||
required this.selectedReactions,
|
||||
required this.currentIndex,
|
||||
this.coachbool
|
||||
}) : super(key: key);
|
||||
NormalCardTile(
|
||||
{Key? key,
|
||||
required this.tags,
|
||||
this.createAt,
|
||||
required this.forWhichTab,
|
||||
required this.commonObj,
|
||||
required this.reactions,
|
||||
required this.selectedReactions,
|
||||
required this.currentIndex,
|
||||
this.coachbool})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
_NormalCardTileState createState() => _NormalCardTileState();
|
||||
}
|
||||
|
||||
class _NormalCardTileState extends State<NormalCardTile> {
|
||||
|
||||
RxString mainImage = 'assets/images/png/uiw_like-o.png'.obs;
|
||||
final CountersHelper countersHelper = Get.find<CountersHelper>();
|
||||
int saveCount = 0;
|
||||
@@ -177,7 +176,7 @@ class _NormalCardTileState extends State<NormalCardTile> {
|
||||
.last;
|
||||
return commonGlassUI(
|
||||
width: double.infinity,
|
||||
height: 765.h,
|
||||
height: 765,
|
||||
mainOpacity: 1,
|
||||
borderRadius: BorderRadius.circular(1),
|
||||
customWidget: Column(
|
||||
@@ -317,7 +316,8 @@ class _NormalCardTileState extends State<NormalCardTile> {
|
||||
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||||
child: Row(
|
||||
children: [
|
||||
countersHelper.pinButtonPopular[widget.currentIndex]
|
||||
countersHelper
|
||||
.pinButtonPopular[widget.currentIndex]
|
||||
? Text(
|
||||
'Unpin',
|
||||
style: TextStyle(
|
||||
|
||||
@@ -47,12 +47,12 @@ class _CommunityDetailsState extends State<CommunityDetails> {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
||||
void refreshData() {
|
||||
void refreshData() {
|
||||
setState(() {
|
||||
myfuture = CommunityDetail().getCommunityDetail(CommunityId);
|
||||
});}
|
||||
|
||||
myfuture = CommunityDetail().getCommunityDetail(CommunityId);
|
||||
});
|
||||
}
|
||||
|
||||
pinunpinCommunity(String communitypinid) async {
|
||||
// utils.loader();
|
||||
Map<String, dynamic> updata = {
|
||||
@@ -223,18 +223,17 @@ class _CommunityDetailsState extends State<CommunityDetails> {
|
||||
),
|
||||
const PopupMenuDivider(),
|
||||
PopupMenuItem(
|
||||
onTap: () async {
|
||||
onTap: () async {
|
||||
var result = await Get.toNamed(
|
||||
RouteName.communitysetting,
|
||||
arguments: {
|
||||
'communityid': CommunityId,
|
||||
});
|
||||
if (result != null && result) {
|
||||
refreshData();
|
||||
// CommunityDetail().getCommunityDetail(CommunityId);
|
||||
print("Updating community details...");
|
||||
// setState(() {});
|
||||
|
||||
refreshData();
|
||||
// CommunityDetail().getCommunityDetail(CommunityId);
|
||||
print("Updating community details...");
|
||||
// setState(() {});
|
||||
}
|
||||
},
|
||||
child: Padding(
|
||||
@@ -704,12 +703,15 @@ class _PostsTabState extends State<PostsTab> {
|
||||
}
|
||||
|
||||
Future<void> setValues() async {
|
||||
|
||||
if (mounted) {
|
||||
// WidgetsBinding.instance.addPostFrameCallback((_) {});
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
_setModel();
|
||||
countersHelper.setListsPopular();
|
||||
await _fetchIcons();
|
||||
}
|
||||
_fetchIcons();
|
||||
});
|
||||
//if (mounted) {
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
_sortTags(index) {
|
||||
|
||||
Reference in New Issue
Block a user