revise_password_page.dart 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. },
  69. )
  70. ],
  71. ),
  72. )
  73. ],
  74. ),
  75. ),
  76. );
  77. }
  78. }