edituser.dart 4.1 KB

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