base.dart 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 login = 'login';
  20. static const String register = 'register';
  21. static const String protocol = 'protocol';
  22. static const String order = 'order';
  23. static const String submitOrder = 'submit_order';
  24. static const String orderDetails = 'orderDetails';
  25. static const String setting = 'setting';
  26. static const String message = 'message';
  27. static const String favours = 'favours';
  28. static const String friends = 'friends';
  29. static const String help = 'help';
  30. static const String about = 'about';
  31. static const String logout = 'logout';
  32. static const String address = 'address';
  33. static const String editAddress = "editAddress";
  34. static const String comment = 'comment';
  35. static const String picture = 'picture';
  36. }