|
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- import 'package:zhiying_comm/zhiying_comm.dart';
-
- // 邀请好友
- class InvitedFriendsPage extends StatefulWidget {
- final Map<String, dynamic> model;
-
- const InvitedFriendsPage(this.model, {Key key}) : super(key: key);
-
- @override
- _InvitedFriendsPageState createState() => _InvitedFriendsPageState();
- }
-
- class _InvitedFriendsPageState extends State<InvitedFriendsPage> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: _createNav(),
- );
- }
-
- // 导航栏
- Widget _createNav() {
- return CupertinoNavigationBar(
- border: Border(
- bottom: BorderSide(
- width: 0.0, // One physical pixel.
- style: BorderStyle.none,
- ),
- ),
- backgroundColor: HexColor.fromHex('#ffffff'),
- leading: Navigator.canPop(context)
- ? GestureDetector(
- child: Container(
- padding: EdgeInsets.zero,
- child: Icon(
- Icons.arrow_back_ios,
- size: 20,
- ),
- ),
- onTap: () {
- if (Navigator.canPop(context)) {
- Navigator.pop(context);
- }
- },
- )
- : Container(),
- middle: Text(
- '邀请好友',
- style: TextStyle(
- fontSize: 15,
- color: HexColor.fromHex('#333333'),
- ),
- ),
- trailing: Text(
- '规则',
- style: TextStyle(
- fontSize: 15,
- color: HexColor.fromHex('#333333'),
- ),
- ),
- );
- }
- }
|