basic_page_router.dart 637 B

1234567891011121314151617181920212223242526272829
  1. import 'package:flutter/material.dart';
  2. import 'package:get/get.dart';
  3. import 'package:router/path/router_path.dart';
  4. import '../modules/global_web_page.dart';
  5. import '../modules/preview_photo_page.dart';
  6. /*
  7. * 当前组件的路由配置,全局公共的页面
  8. */
  9. class BasicPageRouter {
  10. static final routes = [
  11. //全局公用的图片预览
  12. GetPage(
  13. name: RouterPath.PREVIEW_IMAGE,
  14. page: () => PreviewPhotoPage(),
  15. transition: Transition.noTransition,
  16. ),
  17. //全局公用的WebView
  18. GetPage(
  19. name: RouterPath.GLOBAL_WEB,
  20. page: () => GlobalWebPage(key: UniqueKey()),
  21. ),
  22. ];
  23. }