addplatform.dart 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. import 'package:flutter/material.dart';
  2. import 'package:namer_app/footer.dart';
  3. import 'package:namer_app/header.dart';
  4. class AddPlatformPage extends StatelessWidget {
  5. const AddPlatformPage({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. 'ADD PLATFORM',
  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 Platform Name', //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 Project Name', //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(8.0),
  72. child: SizedBox(
  73. width: 396,
  74. child: TextField(
  75. decoration: InputDecoration(
  76. border: OutlineInputBorder(),
  77. focusedBorder: OutlineInputBorder(
  78. borderRadius: BorderRadius.all(Radius.circular(12)),
  79. borderSide: BorderSide(color: Colors.black)),
  80. enabledBorder: OutlineInputBorder(
  81. borderRadius: BorderRadius.all(Radius.circular(12)),
  82. borderSide: BorderSide(color: Colors.black)),
  83. labelText: 'Enter Project Description', //todo get data
  84. labelStyle: TextStyle(color: Colors.black),
  85. filled: true,
  86. fillColor: Colors.white.withOpacity(0.25)),
  87. cursorColor: Colors.black,
  88. style: TextStyle(color: Colors.black),
  89. ),
  90. ),
  91. ),
  92. Padding(
  93. padding: const EdgeInsets.all(20.0),
  94. child: SizedBox(
  95. width: 396,
  96. height: 61,
  97. child: ElevatedButton(
  98. onPressed: null, //todo save edit
  99. style: ElevatedButton.styleFrom(
  100. backgroundColor: Colors.black, //todo putih lage
  101. side: BorderSide(color: Colors.white),
  102. shape: RoundedRectangleBorder(
  103. borderRadius: BorderRadius.circular(12.0),
  104. ),
  105. ),
  106. child: Text(
  107. 'Save',
  108. style: TextStyle(color: Colors.white),
  109. ),
  110. ),
  111. ),
  112. ),
  113. ],
  114. ),
  115. ],
  116. ),
  117. bottomNavigationBar: Footer(),
  118. );
  119. }
  120. }