base.dart 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import 'package:flutter/material.dart';
  2. typedef PageBuilder = Route<dynamic> Function({BuildContext context, RouteSettings settings});
  3. class RouterData {
  4. String name;
  5. bool auth;
  6. PageBuilder page;
  7. RouterData({this.name, this.auth, this.page});
  8. }
  9. class RouteNames {
  10. static const String home = '/';
  11. static const String cate = 'cate';
  12. static const String wallet = 'wallet';
  13. static const String cart = 'cart';
  14. static const String user = 'user';
  15. static const String search = 'search';
  16. static const String productList = 'product_list';
  17. static const String productDetails = 'product_details';
  18. static const String notFound = 'notFound';
  19. static const String loading = 'loading';
  20. static const String login = 'login';
  21. static const String register = 'register';
  22. static const String protocol = 'protocol';
  23. static const String recharge = 'recharge';
  24. static const String rechargeRecord = 'rechargeRecord';
  25. static const String billRecord = 'billRecord';
  26. static const String integralRecord = 'integralRecord';
  27. static const String consumeRecord = 'consumeRecord';
  28. static const String order = 'order';
  29. static const String submitOrder = 'submit_order';
  30. static const String orderDetails = 'orderDetails';
  31. static const String orderExpress = 'orderExpress';
  32. static const String orderComment = 'orderComment';
  33. static const String promotion = 'promotion';
  34. static const String vipCenter = 'vipCenter';
  35. static const String setting = 'setting';
  36. static const String message = 'message';
  37. static const String messageDetails = 'messageDetails';
  38. static const String favours = 'favours';
  39. static const String friends = 'friends';
  40. static const String help = 'help';
  41. static const String about = 'about';
  42. static const String logout = 'logout';
  43. static const String cashDraw = 'cashDraw';
  44. static const String cashRecord = 'cashRecord';
  45. static const String promotionPoster = 'promotionPoster';
  46. static const String promotionRecord = 'promotionRecord';
  47. static const String promotionOrder = 'promotionOrder';
  48. static const String promotionSpread = 'promotionSpread';
  49. static const String address = 'address';
  50. static const String editAddress = "editAddress";
  51. static const String account = 'account';
  52. static const String accountEdit = 'accountEdit';
  53. static const String private = 'private';
  54. static const String aboutUs = 'aboutUs';
  55. static const String comment = 'comment';
  56. static const String picture = 'picture';
  57. }