parent
8b2bd7b226
commit
f84b02f0b1
@ -1,17 +1,77 @@
|
|||||||
|
import 'package:aku_community_manager/const/resource.dart';
|
||||||
|
import 'package:aku_community_manager/style/app_style.dart';
|
||||||
|
import 'package:aku_community_manager/tools/widget_tool.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
class VisitorManagerCard extends StatefulWidget {
|
class VisitorManagerCard extends StatefulWidget {
|
||||||
VisitorManagerCard({Key key}) : super(key: key);
|
final String adress;
|
||||||
|
final String name;
|
||||||
|
final String plate;
|
||||||
|
final String time;
|
||||||
|
VisitorManagerCard({Key key, @required this.adress,@required this.name, this.plate, this.time}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_VisitorManagerCardState createState() => _VisitorManagerCardState();
|
_VisitorManagerCardState createState() => _VisitorManagerCardState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _VisitorManagerCardState extends State<VisitorManagerCard> {
|
class _VisitorManagerCardState extends State<VisitorManagerCard> {
|
||||||
|
|
||||||
|
TextStyle _textStyle=TextStyle(color:AppStyle.primaryTextColor,fontSize:28.sp,);
|
||||||
|
String _adress;
|
||||||
|
String _name;
|
||||||
|
String _plate;
|
||||||
|
String _time;
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_adress=widget.adress;
|
||||||
|
_name=widget.name;
|
||||||
|
_plate=widget.plate??'无信息';
|
||||||
|
_time=widget.time??'无信息';
|
||||||
|
}
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Column(
|
||||||
// child: child,
|
children: [
|
||||||
|
AkuBox.h(16),
|
||||||
|
Container(
|
||||||
|
color: Color(0xFFFFFFFF),
|
||||||
|
width: double.infinity,
|
||||||
|
height: 201.w,
|
||||||
|
padding: EdgeInsets.only(top:24.w,left:24.w,bottom: 28.w),
|
||||||
|
child: Stack(children: [
|
||||||
|
Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children:[
|
||||||
|
Text(_adress,style: TextStyle(color:AppStyle.primaryTextColor,fontSize:32.sp,fontWeight: FontWeight.bold),),
|
||||||
|
AkuBox.h(16),
|
||||||
|
Row(children: [
|
||||||
|
Image.asset(R.ASSETS_USER_IC_PERSON_PNG,width:40.w ,height: 40.w,),
|
||||||
|
AkuBox.w(8),
|
||||||
|
Text('$_name先生',style:_textStyle,),
|
||||||
|
AkuBox.w(137),
|
||||||
|
Image.asset(R.ASSETS_IC_BORROW_PNG,width: 40.w,height: 40.w,),
|
||||||
|
AkuBox.w(8),
|
||||||
|
Text(_plate,style: _textStyle,),
|
||||||
|
Spacer(),
|
||||||
|
],),
|
||||||
|
Spacer(),
|
||||||
|
Row(children: [
|
||||||
|
Image.asset(R.ASSETS_HOME_IC_ARTICLE_PNG,width: 40.w,height: 40.w,),
|
||||||
|
AkuBox.w(8),
|
||||||
|
Text(_time,style:_textStyle),
|
||||||
|
Spacer(),
|
||||||
|
],),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Positioned(
|
||||||
|
left: 582.w,
|
||||||
|
bottom: 104.w,
|
||||||
|
|
||||||
|
child: Placeholder(),),
|
||||||
|
],),
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue