edituser.dart 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. import 'package:flutter/material.dart';
  2. import 'package:namer_app/footer.dart';
  3. import 'package:namer_app/header.dart';
  4. class EditUserPage extends StatelessWidget {
  5. const EditUserPage({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. 'EDIT USER',
  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. // height: 51,
  31. child: TextField(
  32. decoration: InputDecoration(
  33. border: OutlineInputBorder(),
  34. focusedBorder: OutlineInputBorder(
  35. borderRadius: BorderRadius.all(Radius.circular(12)),
  36. borderSide: BorderSide(color: Colors.black)),
  37. enabledBorder: OutlineInputBorder(
  38. borderRadius: BorderRadius.all(Radius.circular(12)),
  39. borderSide: BorderSide(color: Colors.black)),
  40. labelText: 'Enter Username', //todo get data
  41. labelStyle: TextStyle(color: Colors.black),
  42. filled: true,
  43. fillColor: Colors.white.withOpacity(0.25)),
  44. cursorColor: Colors.black,
  45. style: TextStyle(color: Colors.black),
  46. ),
  47. ),
  48. ),
  49. Padding(
  50. padding: const EdgeInsets.all(8.0),
  51. child: SizedBox(
  52. width: 396,
  53. // height: 51,
  54. child: TextField(
  55. decoration: InputDecoration(
  56. border: OutlineInputBorder(),
  57. focusedBorder: OutlineInputBorder(
  58. borderRadius: BorderRadius.all(Radius.circular(12)),
  59. borderSide: BorderSide(color: Colors.black)),
  60. enabledBorder: OutlineInputBorder(
  61. borderRadius: BorderRadius.all(Radius.circular(12)),
  62. borderSide: BorderSide(color: Colors.black)),
  63. labelText: 'Enter Name', //todo get data
  64. labelStyle: TextStyle(color: Colors.black),
  65. filled: true,
  66. fillColor: Colors.white.withOpacity(0.25)),
  67. cursorColor: Colors.black,
  68. style: TextStyle(color: Colors.black),
  69. ),
  70. ),
  71. ),
  72. Padding(
  73. padding: const EdgeInsets.all(20.0),
  74. child: SizedBox(
  75. width: 396,
  76. height: 61,
  77. child: ElevatedButton(
  78. onPressed: null, //todo save edit
  79. style: ElevatedButton.styleFrom(
  80. backgroundColor: Colors.black, //todo putih lage
  81. side: BorderSide(color: Colors.white),
  82. shape: RoundedRectangleBorder(
  83. borderRadius: BorderRadius.circular(12.0),
  84. ),
  85. ),
  86. child: Text(
  87. 'Edit',
  88. style: TextStyle(color: Colors.white),
  89. ),
  90. ),
  91. ),
  92. ),
  93. ],
  94. ),
  95. ],
  96. ),
  97. bottomNavigationBar: Footer(),
  98. );
  99. }
  100. }