me_view_model.dart 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import 'package:riverpod_annotation/riverpod_annotation.dart';
  2. import 'package:router/componentRouter/component_service_manager.dart';
  3. part 'me_view_model.g.dart';
  4. @riverpod
  5. class MeViewModel extends _$MeViewModel {
  6. @override
  7. void build() {}
  8. //去我的房产页面
  9. void gotoMyEstatePage() {
  10. ComponentServiceManager().profileService.startMyEstatePage();
  11. }
  12. //去我的家庭成员页面
  13. void gotoMyHouseholdPage() {
  14. ComponentServiceManager().profileService.startMyHouseHoldPage();
  15. }
  16. //去我的发布页面
  17. void gotoMyPostPage() {
  18. // ToastEngine.show("去我的发布页面");
  19. ComponentServiceManager().communityService.startMyPostsPage();
  20. }
  21. //去设置页面
  22. void gotoSettingPage() {
  23. ComponentServiceManager().profileService.startSettingPage();
  24. }
  25. //我的关注Tab
  26. void gotoFollowingPage() {
  27. // ToastEngine.show("我的关注Tab");
  28. ComponentServiceManager().communityService.startMyFollowPage();
  29. }
  30. //我的粉丝Tab
  31. void gotoFollowerPage() {
  32. // ToastEngine.show("我的粉丝Tab");
  33. ComponentServiceManager().communityService.startMyFollowerPage();
  34. }
  35. //编辑附加信息
  36. void gotoEditProfilePage() {
  37. ComponentServiceManager().profileService.startEditProfilePage();
  38. }
  39. }