me_view_model.dart 1.3 KB

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