existing_member_hidden_detail.dart 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import 'package:flutter/material.dart';
  2. class ExistingMemberHiddenDetail extends StatelessWidget {
  3. @override
  4. Widget build(BuildContext context) {
  5. return Scaffold(
  6. appBar: AppBar(
  7. title: const Text('茶叶详情'),
  8. leading: IconButton(
  9. icon: const Icon(Icons.arrow_back),
  10. onPressed: () => Navigator.pop(context),
  11. ),
  12. ),
  13. body: Stack(
  14. children: [
  15. Padding(
  16. padding: const EdgeInsets.only(bottom: 70.0),
  17. child: SingleChildScrollView(
  18. child: Column(
  19. children: [
  20. // Image carousel placeholder
  21. Container(
  22. color: Colors.grey[400],
  23. height: 200,
  24. width: double.infinity,
  25. child: const Center(
  26. child: Column(
  27. mainAxisAlignment: MainAxisAlignment.center,
  28. children: [
  29. Icon(Icons.image, size: 60, color: Colors.white),
  30. SizedBox(height: 8),
  31. Text("图片加载中...",
  32. style: TextStyle(color: Colors.white)),
  33. ],
  34. ),
  35. ),
  36. ),
  37. const SizedBox(height: 12),
  38. // Product info
  39. Container(
  40. padding: const EdgeInsets.symmetric(horizontal: 16.0),
  41. width: double.infinity,
  42. child: const Column(
  43. crossAxisAlignment: CrossAxisAlignment.start,
  44. children: [
  45. Text(
  46. '杭州龙井',
  47. style: TextStyle(
  48. fontSize: 20, fontWeight: FontWeight.bold),
  49. ),
  50. SizedBox(height: 4),
  51. Text('99人购买 | 累计销售 8950 克'),
  52. SizedBox(height: 4),
  53. Text(
  54. '¥999 (50克)',
  55. style: TextStyle(fontSize: 16, color: Colors.red),
  56. ),
  57. ],
  58. ),
  59. ),
  60. const SizedBox(height: 12),
  61. // Description section
  62. const Padding(
  63. padding: EdgeInsets.symmetric(horizontal: 16.0),
  64. child: Column(
  65. crossAxisAlignment: CrossAxisAlignment.start,
  66. children: [
  67. Divider(),
  68. Text(
  69. '茶叶介绍',
  70. style: TextStyle(
  71. fontSize: 16, fontWeight: FontWeight.bold),
  72. ),
  73. SizedBox(height: 8),
  74. Text(
  75. '介绍一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十\n'
  76. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  77. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  78. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  79. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  80. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  81. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  82. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  83. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  84. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  85. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  86. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  87. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  88. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  89. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  90. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  91. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  92. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  93. 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n'
  94. '一二三四五六七八九十一二三四五六七八九十一',
  95. style: TextStyle(fontSize: 14),
  96. ),
  97. ],
  98. ),
  99. ),
  100. const SizedBox(height: 12),
  101. ],
  102. ),
  103. ),
  104. ),
  105. // Bottom bar
  106. Positioned(
  107. bottom: 0,
  108. left: 0,
  109. right: 0,
  110. height: 70,
  111. child: Container(
  112. color: Colors.grey[100],
  113. padding:
  114. const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12),
  115. child: Row(
  116. children: [
  117. const Expanded(
  118. child: Text(
  119. '联系方式:18888888888',
  120. style: TextStyle(fontSize: 16),
  121. ),
  122. ),
  123. ElevatedButton.icon(
  124. onPressed: () {
  125. // Add call or message logic
  126. },
  127. style: ElevatedButton.styleFrom(
  128. backgroundColor: Colors.pinkAccent,
  129. padding: const EdgeInsets.symmetric(
  130. horizontal: 16, vertical: 12),
  131. ),
  132. icon: const Icon(
  133. Icons.phone,
  134. color: Colors.white,
  135. ),
  136. label: const Text(
  137. '联系购买',
  138. style: TextStyle(color: Colors.white),
  139. ),
  140. ),
  141. ],
  142. ),
  143. ),
  144. ),
  145. ],
  146. ),
  147. );
  148. }
  149. }