parent
86fc5924b5
commit
945523d43d
@ -1,20 +1,48 @@
|
|||||||
|
import 'package:aku_community_manager/style/app_style.dart';
|
||||||
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
|
|
||||||
class VisitorManagerPage extends StatefulWidget {
|
class VisitorManagerPage extends StatefulWidget {
|
||||||
VisitorManagerPage({Key key}) : super(key: key);
|
final initIndex;
|
||||||
|
VisitorManagerPage({Key key, this.initIndex = 0}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_VisitorManagerPageState createState() => _VisitorManagerPageState();
|
_VisitorManagerPageState createState() => _VisitorManagerPageState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _VisitorManagerPageState extends State<VisitorManagerPage> {
|
class _VisitorManagerPageState extends State<VisitorManagerPage>
|
||||||
|
with TickerProviderStateMixin {
|
||||||
|
List tabs = ['全部', '未到访', '已到访', '已过期'];
|
||||||
|
|
||||||
|
TabController _tabController;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_tabController =
|
||||||
|
TabController(length: 4, vsync: this, initialIndex: widget.initIndex);
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return AkuScaffold(
|
return AkuScaffold(
|
||||||
// title: '',
|
title: '访客管理',
|
||||||
// appBarBottom: ,
|
appBarBottom: PreferredSize(
|
||||||
// body: ,
|
child: TabBar(
|
||||||
|
tabs: tabs.map((e) => Tab(text: e)).toList(),
|
||||||
|
labelStyle: AppStyle().primaryStyle,
|
||||||
|
labelColor: AppStyle.primaryTextColor,
|
||||||
|
unselectedLabelColor: AppStyle.minorTextColor,
|
||||||
|
unselectedLabelStyle: TextStyle(fontSize:28.sp),
|
||||||
|
controller: _tabController,
|
||||||
|
indicatorColor: Color(0xFFFFC40C),
|
||||||
|
indicatorSize: TabBarIndicatorSize.label,
|
||||||
|
),
|
||||||
|
preferredSize: Size.fromHeight(88.w)),
|
||||||
|
body: ListView(
|
||||||
|
children: [],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue