account.dart 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. import 'package:flutter/material.dart';
  2. import 'package:date_format/date_format.dart';
  3. var date = formatDate(DateTime.now(), [HH, ':', nn]);
  4. class AccountPage extends StatelessWidget {
  5. const AccountPage({super.key});
  6. @override
  7. Widget build(BuildContext context) {
  8. return Scaffold(
  9. appBar: AppBar(
  10. backgroundColor: Colors.white,
  11. automaticallyImplyLeading: false,
  12. elevation: 0,
  13. toolbarHeight: 44,
  14. title: Text(
  15. date,
  16. style: TextStyle(color: Color(0xff303336), fontSize: 15),
  17. ),
  18. actions: [
  19. Icon(
  20. Icons.signal_cellular_alt,
  21. color: Color(0xff303336),
  22. ),
  23. Icon(
  24. Icons.wifi,
  25. color: Color(0xff303336),
  26. ),
  27. RotatedBox(
  28. quarterTurns: -3,
  29. child: Icon(
  30. Icons.battery_std,
  31. color: Color(0xff303336),
  32. ),
  33. )
  34. ],
  35. ),
  36. body: Column(
  37. children: [
  38. Container(
  39. height: 44,
  40. alignment: Alignment.centerLeft,
  41. padding: EdgeInsets.symmetric(horizontal: 10),
  42. child: Text(
  43. 'Account',
  44. style: TextStyle(fontWeight: FontWeight.bold),
  45. ),
  46. ),
  47. Divider(),
  48. Container(
  49. padding: EdgeInsets.all(10),
  50. child: Row(
  51. children: [
  52. CircleAvatar(
  53. backgroundColor: Color(0xff078C84),
  54. child: Text('J'),
  55. ),
  56. Padding(
  57. padding: const EdgeInsets.symmetric(horizontal: 10),
  58. child: Text(
  59. 'James Triyono',
  60. style: TextStyle(fontWeight: FontWeight.bold),
  61. ),
  62. )
  63. ],
  64. ),
  65. ),
  66. Divider(
  67. thickness: 8,
  68. ),
  69. Container(
  70. alignment: Alignment.centerLeft,
  71. padding: EdgeInsets.all(10),
  72. child: Text(
  73. 'Info',
  74. style: TextStyle(fontWeight: FontWeight.bold),
  75. ),
  76. ),
  77. Container(
  78. height: 5,
  79. ),
  80. Container(
  81. padding: EdgeInsets.symmetric(horizontal: 10),
  82. child: Row(
  83. children: [
  84. Text(
  85. 'User ID',
  86. style: TextStyle(color: Color(0xff2D32BF).withOpacity(0.75)),
  87. ),
  88. Spacer(),
  89. Text(
  90. 'jamet',
  91. style: TextStyle(color: Color(0xff292D32)),
  92. )
  93. ],
  94. ),
  95. ),
  96. Container(
  97. height: 5,
  98. ),
  99. Container(
  100. padding: EdgeInsets.symmetric(horizontal: 10),
  101. child: Row(
  102. children: [
  103. Text(
  104. 'Location',
  105. style: TextStyle(color: Color(0xff2D32BF).withOpacity(0.75)),
  106. ),
  107. Spacer(),
  108. Text(
  109. 'Room 331',
  110. style: TextStyle(color: Color(0xff292D32)),
  111. )
  112. ],
  113. ),
  114. ),
  115. Container(
  116. height: 5,
  117. ),
  118. Container(
  119. padding: EdgeInsets.symmetric(horizontal: 10),
  120. child: Row(
  121. children: [
  122. Text(
  123. 'Request Group',
  124. style: TextStyle(color: Color(0xff2D32BF).withOpacity(0.75)),
  125. ),
  126. Spacer(),
  127. Text(
  128. 'All',
  129. style: TextStyle(color: Color(0xff292D32)),
  130. )
  131. ],
  132. ),
  133. ),
  134. Container(
  135. height: 10,
  136. ),
  137. Divider(
  138. thickness: 8,
  139. ),
  140. Container(
  141. alignment: Alignment.centerLeft,
  142. padding: EdgeInsets.all(10),
  143. child: Text(
  144. 'Setting',
  145. style: TextStyle(fontWeight: FontWeight.bold),
  146. ),
  147. ),
  148. Container(
  149. padding: EdgeInsets.symmetric(horizontal: 10),
  150. child: Row(
  151. children: [Icon(Icons.language)],
  152. ),
  153. ),
  154. ],
  155. ),
  156. );
  157. }
  158. }