| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import 'package:flutter/material.dart';
- typedef PageBuilder = Route<dynamic> Function({BuildContext context, RouteSettings settings});
- class RouterData {
- String name;
- bool auth;
- PageBuilder page;
- RouterData({this.name, this.auth, this.page});
- }
- class RouteNames {
- static const String home = '/';
- static const String cate = 'cate';
- static const String wallet = 'wallet';
- static const String cart = 'cart';
- static const String user = 'user';
- static const String search = 'search';
- static const String productList = 'product_list';
- static const String productDetails = 'product_details';
- static const String notFound = 'notFound';
- static const String login = 'login';
- static const String register = 'register';
- static const String protocol = 'protocol';
- static const String order = 'order';
- static const String submitOrder = 'submit_order';
- static const String orderDetails = 'orderDetails';
- static const String setting = 'setting';
- static const String message = 'message';
- static const String favours = 'favours';
- static const String friends = 'friends';
- static const String help = 'help';
- static const String about = 'about';
- static const String logout = 'logout';
- static const String address = 'address';
- static const String editAddress = "editAddress";
- static const String comment = 'comment';
- static const String picture = 'picture';
- }
|