revise_password_page.dart 2.7 KB

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