signup.dart 4.9 KB

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