me_view_model.dart 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. }
  21. //去设置页面
  22. void gotoSettingPage() {
  23. ComponentServiceManager().profileService.startSettingPage();
  24. }
  25. //我的关注Tab
  26. void gotoFollowingPage() {
  27. ToastEngine.show("我的关注Tab");
  28. }
  29. //我的粉丝Tab
  30. void gotoFollowerPage() {
  31. ToastEngine.show("我的粉丝Tab");
  32. }
  33. //编辑附加信息
  34. void gotoEditProfilePage() {
  35. ComponentServiceManager().profileService.startEditProfilePage();
  36. }
  37. }