Commit d9791b06 authored by laishanqi's avatar laishanqi

提交药师端我的页

parent 160e7106
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:netrain_flutter_app/laishanqi/Images.dart';
import 'Images.dart';
class HomePage extends StatefulWidget {
@override
......@@ -101,7 +103,7 @@ class _HomePage extends State {
left: 32,
child: Text(
"R001520041700004",
style: TextStyle(fontSize:16,color: Color(0xff151515)),
style: TextStyle(fontSize: 16, color: Color(0xff151515)),
)),
Positioned(
top: 52,
......@@ -115,11 +117,17 @@ class _HomePage extends State {
Positioned(
top: 64,
left: 32,
child: Text("医生姓名:刘泽婷",style: TextStyle(fontSize: 16,color: Color(0xff171717)),)),
child: Text(
"医生姓名:刘泽婷",
style: TextStyle(fontSize: 16, color: Color(0xff171717)),
)),
Positioned(
top: 92,
left: 32,
child: Text("处方时间:2020-04-17 15:3426",style: TextStyle(fontSize: 14,color: Color(0xff7D7D7D)),))
child: Text(
"处方时间:2020-04-17 15:3426",
style: TextStyle(fontSize: 14, color: Color(0xff7D7D7D)),
))
],
);
}
......@@ -231,8 +239,166 @@ class _HomePage extends State {
}
Widget my() {
return Container(
decoration: BoxDecoration(color: Colors.yellow),
return Stack(
children: [
Positioned(
top: 0,
left: 0,
right: 0,
child: Image.asset(
Images.bg_my_01,
fit: BoxFit.fill,
)),
Positioned(
top: 65,
left: 39,
child: Container(
height: 66,
width: 66,
decoration: BoxDecoration(
color: Colors.yellow,
borderRadius: BorderRadius.circular(33)),
)),
Positioned(
top: 77,
left: 122,
child: Text(
"奈特瑞",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 16,
color: Colors.white),
)),
Positioned(
top: 100,
left: 122,
child: Text(
"13570344051",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 16,
color: Colors.white),
)),
Positioned(
top: 153,
left: 16,
right: 16,
child: SingleChildScrollView(
child: Container(
decoration:
BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10)),
child: Wrap(
children: [
ListTile(
title: Row(
children: [
Image.asset(
Images.ic_prescription,
),
Container(
margin: EdgeInsets.only(left: 6),
child: Text("我审核的处方"),
),
],
),
trailing: Icon(Icons.chevron_right),
),
Divider(color: Color(0xfff1f1f1),height: 1,indent: 16,endIndent: 16,),
ListTile(
title: Row(
children: [
Image.asset(
Images.ic_sign,
),
Container(
margin: EdgeInsets.only(left: 6),
child: Text("电子签名"),
),
],
),
trailing: Icon(Icons.chevron_right),
),
Divider(color: Color(0xfff1f1f1),height: 1,indent: 16,endIndent: 16,),
ListTile(
title: Row(
children: [
Image.asset(
Images.ic_my_info,
),
Container(
margin: EdgeInsets.only(left: 6),
child: Text("我的信息"),
),
],
),
trailing: Icon(Icons.chevron_right),
),
Divider(color: Color(0xfff1f1f1),height: 1,indent: 16,endIndent: 16,),
ListTile(
title: Row(
children: [
Image.asset(
Images.ic_password,
),
Container(
margin: EdgeInsets.only(left: 6),
child: Text("密码管理"),
),
],
),
trailing: Icon(Icons.chevron_right),
),
Divider(color: Color(0xfff1f1f1),height: 1,indent: 16,endIndent: 16,),
ListTile(
title: Row(
children: [
Image.asset(
Images.ic_privacy,
),
Container(
margin: EdgeInsets.only(left: 6),
child: Text("隐私政策"),
),
],
),
trailing: Icon(Icons.chevron_right),
),
Divider(color: Color(0xfff1f1f1),height: 1,indent: 16,endIndent: 16,),
ListTile(
title: Row(
children: [
Image.asset(
Images.ic_on,
),
Container(
margin: EdgeInsets.only(left: 6),
child: Text("关于"),
),
],
),
trailing: Icon(Icons.chevron_right),
),
Divider(color: Color(0xfff1f1f1),height: 1,indent: 16,endIndent: 16,),
ListTile(
title: Row(
children: [
Image.asset(
Images.ic_logout,
),
Container(
margin: EdgeInsets.only(left: 6),
child: Text("退出登录"),
),
],
),
trailing: Icon(Icons.chevron_right),
),
],
),
)))
],
);
}
}
......@@ -9,4 +9,12 @@ class Images{
static const ic_state_01 = "${imagesPath}ic_state_01.png";
static const ic_state_02 = "${imagesPath}ic_state_02.png";
static const ic_state_03 = "${imagesPath}ic_state_03.png";
static const bg_my_01 = "${imagesPath}bg_my_01.png";
static const ic_logout = "${imagesPath}ic_logout.png";
static const ic_my_info = "${imagesPath}ic_my_info.png";
static const ic_on = "${imagesPath}ic_on.png";
static const ic_password = "${imagesPath}ic_password.png";
static const ic_prescription = "${imagesPath}ic_prescription.png";
static const ic_privacy = "${imagesPath}ic_privacy.png";
static const ic_sign = "${imagesPath}ic_sign.png";
}
\ No newline at end of file
import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:netrain_flutter_app/laishanqi/HomePage.dart';
import 'package:netrain_flutter_app/laishanqi/Images.dart';
import 'HomePage.dart';
import 'Images.dart';
/// 登录页
class LoginPage extends StatefulWidget {
......
......@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'laishanqi/Stateful_page.dart';
import 'laishanqi/Stateless_page.dart';
import 'laishanqi/layout_page.dart';
import 'laishanqi/loginPage.dart';
import 'laishanqi/netrain/loginPage.dart';
import 'laishanqi/photo.dart';
void main() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment