chgpass.dart 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import 'package:flutter/material.dart';
  2. import 'package:namer_app/footer.dart';
  3. import 'package:namer_app/header.dart';
  4. class ChangepassPage extends StatelessWidget {
  5. const ChangepassPage({super.key});
  6. @override
  7. Widget build(BuildContext context) {
  8. return Scaffold(
  9. appBar: Header(
  10. title: Text('title'),
  11. appBar: AppBar(),
  12. widgets: <Widget>[Icon(Icons.more_vert)],
  13. ),
  14. backgroundColor: Colors.white,
  15. body: Column(
  16. mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  17. children: [
  18. Center(
  19. child: Row(
  20. mainAxisAlignment: MainAxisAlignment.center,
  21. children: [
  22. Text(
  23. 'CHANGE PASSWORD',
  24. style: TextStyle(color: Colors.black, fontSize: 48),
  25. ),
  26. ],
  27. )),
  28. Column(
  29. children: [
  30. Padding(
  31. padding: const EdgeInsets.all(8.0),
  32. child: SizedBox(
  33. width: 396,
  34. // height: 51,
  35. child: TextField(
  36. decoration: InputDecoration(
  37. border: OutlineInputBorder(),
  38. focusedBorder: OutlineInputBorder(
  39. borderRadius: BorderRadius.all(Radius.circular(12)),
  40. borderSide: BorderSide(color: Colors.black)),
  41. enabledBorder: OutlineInputBorder(
  42. borderRadius: BorderRadius.all(Radius.circular(12)),
  43. borderSide: BorderSide(color: Colors.black)),
  44. labelText: 'Enter Old Password', //todo get data
  45. labelStyle: TextStyle(color: Colors.black),
  46. filled: true,
  47. fillColor: Colors.white.withOpacity(0.25)),
  48. cursorColor: Colors.black,
  49. style: TextStyle(color: Colors.black),
  50. ),
  51. ),
  52. ),
  53. Padding(
  54. padding: const EdgeInsets.all(8.0),
  55. child: SizedBox(
  56. width: 396,
  57. // height: 51,
  58. child: TextField(
  59. decoration: InputDecoration(
  60. border: OutlineInputBorder(),
  61. focusedBorder: OutlineInputBorder(
  62. borderRadius: BorderRadius.all(Radius.circular(12)),
  63. borderSide: BorderSide(color: Colors.black)),
  64. enabledBorder: OutlineInputBorder(
  65. borderRadius: BorderRadius.all(Radius.circular(12)),
  66. borderSide: BorderSide(color: Colors.black)),
  67. labelText: 'Enter New Password', //todo get data
  68. labelStyle: TextStyle(color: Colors.black),
  69. filled: true,
  70. fillColor: Colors.white.withOpacity(0.25)),
  71. cursorColor: Colors.black,
  72. style: TextStyle(color: Colors.black),
  73. ),
  74. ),
  75. ),
  76. Padding(
  77. padding: const EdgeInsets.all(20.0),
  78. child: SizedBox(
  79. width: 396,
  80. height: 61,
  81. child: ElevatedButton(
  82. onPressed: null, //todo save chgpass
  83. style: ElevatedButton.styleFrom(
  84. backgroundColor: Colors.black, //todo putih lage
  85. side: BorderSide(color: Colors.white),
  86. shape: RoundedRectangleBorder(
  87. borderRadius: BorderRadius.circular(12.0),
  88. ),
  89. ),
  90. child: Text(
  91. 'Edit',
  92. style: TextStyle(color: Colors.white),
  93. ),
  94. ),
  95. ),
  96. ),
  97. ],
  98. ),
  99. ],
  100. ),
  101. bottomNavigationBar: Footer(),
  102. );
  103. }
  104. }