editplatform.dart 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 EditPlatformPage extends StatelessWidget {
  6. const EditPlatformPage({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 PLATFORM',
  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. child: TextField(
  37. decoration: InputDecoration(
  38. border: OutlineInputBorder(),
  39. focusedBorder: OutlineInputBorder(
  40. borderRadius: BorderRadius.all(Radius.circular(12)),
  41. borderSide: BorderSide(color: Colors.black)),
  42. enabledBorder: OutlineInputBorder(
  43. borderRadius: BorderRadius.all(Radius.circular(12)),
  44. borderSide: BorderSide(color: Colors.black)),
  45. labelText: 'Enter Platform Name', //todo get data
  46. labelStyle: TextStyle(color: Colors.black),
  47. filled: true,
  48. fillColor: Colors.white.withOpacity(0.25)),
  49. cursorColor: Colors.black,
  50. style: TextStyle(color: Colors.black),
  51. ),
  52. ),
  53. ),
  54. Padding(
  55. padding: const EdgeInsets.all(8.0),
  56. child: SizedBox(
  57. width: 396,
  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 Project Name', //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(8.0),
  78. child: SizedBox(
  79. width: 396,
  80. child: TextField(
  81. decoration: InputDecoration(
  82. border: OutlineInputBorder(),
  83. focusedBorder: OutlineInputBorder(
  84. borderRadius: BorderRadius.all(Radius.circular(12)),
  85. borderSide: BorderSide(color: Colors.black)),
  86. enabledBorder: OutlineInputBorder(
  87. borderRadius: BorderRadius.all(Radius.circular(12)),
  88. borderSide: BorderSide(color: Colors.black)),
  89. labelText: 'Enter Project Description', //todo get data
  90. labelStyle: TextStyle(color: Colors.black),
  91. filled: true,
  92. fillColor: Colors.white.withOpacity(0.25)),
  93. cursorColor: Colors.black,
  94. style: TextStyle(color: Colors.black),
  95. ),
  96. ),
  97. ),
  98. Padding(
  99. padding: const EdgeInsets.all(20.0),
  100. child: SizedBox(
  101. width: 396,
  102. height: 61,
  103. child: ElevatedButton(
  104. onPressed: null, //todo save edit
  105. style: ElevatedButton.styleFrom(
  106. backgroundColor: Colors.black, //todo putih lage
  107. side: BorderSide(color: Colors.white),
  108. shape: RoundedRectangleBorder(
  109. borderRadius: BorderRadius.circular(12.0),
  110. ),
  111. ),
  112. child: Text(
  113. 'Edit',
  114. style: TextStyle(color: Colors.white),
  115. ),
  116. ),
  117. ),
  118. ),
  119. ],
  120. ),
  121. ],
  122. ),
  123. bottomNavigationBar: Footer(),
  124. );
  125. }
  126. }