chgpass.dart 3.8 KB

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