moving_company_page.dart 840 B

12345678910111213141516171819202122232425262728293031
  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/form_page_router.dart';
  6. @RoutePage()
  7. class MovingCompanyPage extends HookConsumerWidget {
  8. const MovingCompanyPage({Key? key}) : super(key: key);
  9. //启动当前页面
  10. static void startInstance({BuildContext? context}) {
  11. if (context != null) {
  12. context.router.push(const MovingCompanyPageRoute());
  13. } else {
  14. appRouter.push(const MovingCompanyPageRoute());
  15. }
  16. }
  17. @override
  18. Widget build(BuildContext context, WidgetRef ref) {
  19. return Scaffold(
  20. appBar: AppBar(title: Text("MovingCompanyPage")),
  21. body: Center(
  22. child: Text("MovingCompanyPage"),
  23. ),
  24. );
  25. }
  26. }