|
@@ -97,7 +97,7 @@ class PropertyPage extends HookConsumerWidget {
|
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
|
final _vm = ref.read(propertyVmProvider.notifier);
|
|
|
final state = ref.watch(propertyVmProvider);
|
|
|
- final isCollection = useState<bool>(false);
|
|
|
+ final isCollection = useState<int>(0);
|
|
|
|
|
|
useEffect((){
|
|
|
WidgetsBinding.instance?.addPostFrameCallback((timeStamp) {
|
|
@@ -120,11 +120,11 @@ class PropertyPage extends HookConsumerWidget {
|
|
|
backgroundColor: context.appColors.backgroundWhite,
|
|
|
actions: [
|
|
|
state.currentPageViewIdx == 1? MyAssetImage(
|
|
|
- isCollection.value? Assets.propertyCollectionActive: Assets.propertyCollection,
|
|
|
+ isCollection.value ==1? Assets.propertyCollectionActive: Assets.propertyCollection,
|
|
|
width: 22.5,
|
|
|
height: 21,
|
|
|
).onTap((){
|
|
|
- isCollection.value = !isCollection.value;
|
|
|
+ isCollection.value = isCollection.value ==1?0:1;
|
|
|
_vm.handlerCollectionFilter(context,isCollection.value);
|
|
|
}):Container(),
|
|
|
const SizedBox(width: 20),
|