signup.dart 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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: Header(
  11. title: Text('title'),
  12. appBar: AppBar(),
  13. widgets: <Widget>[Icon(Icons.more_vert)],
  14. ),
  15. backgroundColor: Colors.white,
  16. body: Column(
  17. mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  18. children: [
  19. Center(
  20. child: Row(
  21. mainAxisAlignment: MainAxisAlignment.center,
  22. children: [
  23. Text(
  24. 'SIGN UP',
  25. style: TextStyle(color: Colors.black, fontSize: 48),
  26. ),
  27. ],
  28. )),
  29. Column(
  30. children: [
  31. Padding(
  32. padding: const EdgeInsets.all(8.0),
  33. child: SizedBox(
  34. width: 396,
  35. // height: 51,
  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 Username',
  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. // height: 51,
  59. child: TextField(
  60. decoration: InputDecoration(
  61. border: OutlineInputBorder(),
  62. focusedBorder: OutlineInputBorder(
  63. borderRadius: BorderRadius.all(Radius.circular(12)),
  64. borderSide: BorderSide(color: Colors.black)),
  65. enabledBorder: OutlineInputBorder(
  66. borderRadius: BorderRadius.all(Radius.circular(12)),
  67. borderSide: BorderSide(color: Colors.black)),
  68. labelText: 'Enter Name',
  69. labelStyle: TextStyle(color: Colors.black),
  70. filled: true,
  71. fillColor: Colors.white.withOpacity(0.25)),
  72. cursorColor: Colors.black,
  73. style: TextStyle(color: Colors.black),
  74. ),
  75. ),
  76. ),
  77. SizedBox(
  78. width: 396,
  79. // height: 51,
  80. child: TextField(
  81. obscureText: true,
  82. decoration: InputDecoration(
  83. border: OutlineInputBorder(),
  84. focusedBorder: OutlineInputBorder(
  85. borderRadius: BorderRadius.all(Radius.circular(12)),
  86. borderSide: BorderSide(color: Colors.black)),
  87. enabledBorder: OutlineInputBorder(
  88. borderRadius: BorderRadius.all(Radius.circular(12)),
  89. borderSide: BorderSide(color: Colors.black)),
  90. labelText: 'Enter Password',
  91. labelStyle: TextStyle(color: Colors.black),
  92. filled: true,
  93. fillColor: Colors.white.withOpacity(0.25)),
  94. cursorColor: Colors.black,
  95. style: TextStyle(color: Colors.black),
  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: () => context.go('/signup/listuser'),
  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. 'Save',
  114. style: TextStyle(color: Colors.white),
  115. ),
  116. ),
  117. ),
  118. ),
  119. ],
  120. ),
  121. ],
  122. ),
  123. bottomNavigationBar: Footer(),
  124. );
  125. }
  126. }