mem_page.dart 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_note/routers/application.dart';
  3. import 'package:flutter_note/views/mempage/mem_header.dart';
  4. import 'package:flutter_note/views/mempage/mem_tile.dart';
  5. import 'package:flutter_note/views/mempage/order_grid.dart';
  6. import 'package:flutter_note/routers/routers.dart';
  7. class MemPage extends StatelessWidget {
  8. @override
  9. Widget build(BuildContext context) {
  10. return Scaffold(
  11. appBar: AppBar(
  12. title: Text('会员中心'),
  13. centerTitle: true,
  14. ),
  15. body: ListView(
  16. children: [
  17. MemHeader(),
  18. MemTile(leading: Icons.border_all, title: "我的订单", action: () {}),
  19. Divider(height: 2.0, color: Colors.black38),
  20. OrderGrid(),
  21. Container(height: 8.0, color: Colors.black12),
  22. MemTile(
  23. leading: Icons.bookmark_border, title: "领取优惠券", action: () {}),
  24. Divider(height: 2.0, color: Colors.black38),
  25. MemTile(
  26. leading: Icons.bookmark_border, title: "已领取优惠券", action: () {}),
  27. Divider(height: 2.0, color: Colors.black38),
  28. MemTile(leading: Icons.my_location, title: "地址管理", action: () {}),
  29. Container(height: 8.0, color: Colors.black12),
  30. MemTile(leading: Icons.phone, title: "客服电话", action: () {}),
  31. Divider(height: 2.0, color: Colors.black38),
  32. MemTile(leading: Icons.info_outline, title: "关于商城", action: () {}),
  33. Container(height: 8.0, color: Colors.black12),
  34. MemTile(
  35. leading: Icons.settings,
  36. title: "设置",
  37. action: () =>
  38. Application.router.navigateTo(context, Routers.settings)),
  39. ],
  40. ),
  41. );
  42. }
  43. }