revise_password_page.dart 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import '../../util/session.dart';
  4. class RevisePasswordPage extends StatefulWidget {
  5. final Widget child;
  6. RevisePasswordPage({
  7. Key key,
  8. this.child
  9. }): super(key: key);
  10. _RevisePasswordPageState createState() => _RevisePasswordPageState();
  11. }
  12. class _RevisePasswordPageState extends State < RevisePasswordPage > {
  13. @override
  14. Widget build(BuildContext context) {
  15. return Scaffold(
  16. appBar: AppBar(
  17. elevation: 0,
  18. title: Text('修改密码',
  19. style: TextStyle(
  20. fontSize: ScreenUtil.getInstance().setSp(36)
  21. ), ),
  22. centerTitle: true,
  23. backgroundColor: Color.fromRGBO(64, 98, 254, 1),
  24. ),
  25. body: Container(
  26. color: Colors.white,
  27. child: Column(
  28. children: < Widget > [
  29. Container(
  30. padding: EdgeInsets.fromLTRB(ScreenUtil.getInstance().setHeight(55), ScreenUtil.getInstance().setHeight(150), ScreenUtil.getInstance().setHeight(55), 0),
  31. child: Column(
  32. children: < Widget > [
  33. Padding(
  34. padding: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(60)),
  35. child: TextField(
  36. decoration: InputDecoration(
  37. border: UnderlineInputBorder(),
  38. hintText: "请输入旧密码",
  39. hintStyle: TextStyle(fontSize: ScreenUtil.getInstance().setSp(32), color: Color.fromRGBO(155, 155, 155, 1)),
  40. ),
  41. ),
  42. ),
  43. Padding(
  44. padding: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(125)),
  45. child:TextField(
  46. cursorColor: Color.fromRGBO(153, 153, 153, 0.5),
  47. decoration: InputDecoration(
  48. hintText: "请输入新密码",
  49. hintStyle: TextStyle(fontSize: ScreenUtil.getInstance().setSp(32), color: Color.fromRGBO(155, 155, 155, 1)),
  50. ),
  51. )
  52. ),
  53. InkWell(
  54. child:Container(
  55. height: ScreenUtil.getInstance().setHeight(100),
  56. decoration: BoxDecoration(
  57. color: Color.fromRGBO(64,98,254,1),
  58. borderRadius: BorderRadius.circular(4),
  59. ),
  60. child: Center(
  61. child: Text('确认',style:TextStyle(fontSize:ScreenUtil.getInstance().setSp(36),color: Colors.white )),
  62. ),
  63. ),
  64. onTap: (){
  65. getKey('phone').then((value){
  66. print(value);
  67. });
  68. getKey('s').then((value){
  69. print(value);
  70. });
  71. },
  72. )
  73. ],
  74. ),
  75. )
  76. ],
  77. ),
  78. ),
  79. );
  80. }
  81. }