
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 loading = 'loading';

  static const String login = 'login';
  static const String register = 'register';
  static const String protocol = 'protocol';

  static const String recharge = 'recharge';
  static const String rechargeRecord = 'rechargeRecord';
  static const String billRecord = 'billRecord';
  static const String integralRecord = 'integralRecord';
  static const String consumeRecord = 'consumeRecord';

  static const String order = 'order';
  static const String submitOrder = 'submit_order';
  static const String orderDetails = 'orderDetails';
  static const String orderExpress = 'orderExpress';
  static const String orderComment = 'orderComment';

  static const String promotion = 'promotion';
  static const String vipCenter = 'vipCenter';

  static const String setting = 'setting';
  static const String message = 'message';
  static const String messageDetails = 'messageDetails';
  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 cashDraw = 'cashDraw';
  static const String cashRecord = 'cashRecord';
  static const String promotionPoster = 'promotionPoster';
  static const String promotionRecord = 'promotionRecord';
  static const String promotionOrder = 'promotionOrder';
  static const String promotionSpread = 'promotionSpread';

  static const String address = 'address';
  static const String editAddress = "editAddress";

  static const String account = 'account';
  static const String accountEdit = 'accountEdit';
  static const String private = 'private';
  static const String aboutUs = 'aboutUs';

  static const String comment = 'comment';

  static const String picture = 'picture';
}