signup.dart 5.1 KB

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