garagesale_page.dart 948 B

1234567891011121314151617181920212223242526272829303132333435
  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/community_page_router.dart';
  6. import 'garagesale_vm.dart';
  7. @RoutePage()
  8. class GaragesalePage extends HookConsumerWidget {
  9. const GaragesalePage({Key? key}) : super(key: key);
  10. //启动当前页面
  11. static void startInstance({BuildContext? context}) {
  12. if (context != null) {
  13. context.router.push(const GaragesalePageRoute());
  14. } else {
  15. appRouter.push(const GaragesalePageRoute());
  16. }
  17. }
  18. @override
  19. Widget build(BuildContext context, WidgetRef ref) {
  20. final _viewModel = ref.read(garagesaleVmProvider.notifier);
  21. return Scaffold(
  22. // appBar: AppBar(title: Text("社区")),
  23. body: Center(
  24. child: Text("garage sale"),
  25. ),
  26. );
  27. }
  28. }