基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

66 lines
1.5 KiB

  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:zhiying_comm/zhiying_comm.dart';
  4. // 邀请好友
  5. class InvitedFriendsPage extends StatefulWidget {
  6. final Map<String, dynamic> model;
  7. const InvitedFriendsPage(this.model, {Key key}) : super(key: key);
  8. @override
  9. _InvitedFriendsPageState createState() => _InvitedFriendsPageState();
  10. }
  11. class _InvitedFriendsPageState extends State<InvitedFriendsPage> {
  12. @override
  13. Widget build(BuildContext context) {
  14. return Scaffold(
  15. appBar: _createNav(),
  16. );
  17. }
  18. // 导航栏
  19. Widget _createNav() {
  20. return CupertinoNavigationBar(
  21. border: Border(
  22. bottom: BorderSide(
  23. width: 0.0, // One physical pixel.
  24. style: BorderStyle.none,
  25. ),
  26. ),
  27. backgroundColor: HexColor.fromHex('#ffffff'),
  28. leading: Navigator.canPop(context)
  29. ? GestureDetector(
  30. child: Container(
  31. padding: EdgeInsets.zero,
  32. child: Icon(
  33. Icons.arrow_back_ios,
  34. size: 20,
  35. ),
  36. ),
  37. onTap: () {
  38. if (Navigator.canPop(context)) {
  39. Navigator.pop(context);
  40. }
  41. },
  42. )
  43. : Container(),
  44. middle: Text(
  45. '邀请好友',
  46. style: TextStyle(
  47. fontSize: 15,
  48. color: HexColor.fromHex('#333333'),
  49. ),
  50. ),
  51. trailing: Text(
  52. '规则',
  53. style: TextStyle(
  54. fontSize: 15,
  55. color: HexColor.fromHex('#333333'),
  56. ),
  57. ),
  58. );
  59. }
  60. }