property_sale_page.dart 971 B

12345678910111213141516171819202122232425262728293031323334
  1. import 'package:flutter/material.dart';
  2. import 'package:auto_route/auto_route.dart';
  3. import 'package:hooks_riverpod/hooks_riverpod.dart';
  4. import 'package:router/ext/auto_router_extensions.dart';
  5. import '../../../router/page/property_page_router.dart';
  6. import '../vm/property_sale_vm.dart';
  7. @RoutePage()
  8. class PropertySalePage extends HookConsumerWidget {
  9. const PropertySalePage({Key? key}) : super(key: key);
  10. //启动当前页面
  11. static void startInstance({BuildContext? context}) {
  12. if (context != null) {
  13. context.router.push(const PropertySalePageRoute());
  14. } else {
  15. appRouter.push(const PropertySalePageRoute());
  16. }
  17. }
  18. @override
  19. Widget build(BuildContext context, WidgetRef ref) {
  20. final _vm = ref.read(propertySaleVmProvider.notifier);
  21. return Scaffold(
  22. // appBar: AppBar(title: Text("资产")),
  23. body: Center(
  24. child: Text("房屋sale的主页面"),
  25. ),
  26. );
  27. }
  28. }