cash_record.dart 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. import 'package:flutter/material.dart';
  2. import 'package:twong/utils/i18n.dart';
  3. import 'package:twong/widgets/app_bar.dart';
  4. import 'package:twong/widgets/fsuper.dart';
  5. class CashRecordPage extends StatefulWidget {
  6. @override
  7. State<StatefulWidget> createState() {
  8. return _CashRecordState();
  9. }
  10. }
  11. class _CashRecordState extends State<CashRecordPage> {
  12. @override
  13. Widget build(BuildContext context) {
  14. return Scaffold(
  15. appBar: DAppBar("提现记录"),
  16. body: SafeArea(
  17. child: ListView(
  18. physics: ClampingScrollPhysics(),
  19. children: [
  20. FSuper(
  21. width: 280,
  22. height: 45,
  23. text: 'Search Flight',
  24. textAlignment: Alignment.center,
  25. corner: FCorner.all(23),
  26. gradient: LinearGradient(colors: [
  27. Color(0xfffed83a),
  28. Color(0xfffcad2c),
  29. ]),
  30. ),FSuper(
  31. text: 'Overview',
  32. backgroundColor: Colors.white,
  33. padding: EdgeInsets.fromLTRB(6.0 + 18.0 + 6.0, 9, 9, 9),
  34. corner: FCorner(rightTopCorner: 20, rightBottomCorner: 20),
  35. child1: Icon(
  36. Icons.subject,
  37. size: 18,
  38. color: Color(0xffa6a4a7),
  39. ),
  40. child1Alignment: Alignment.centerLeft,
  41. child1Margin: EdgeInsets.only(left: 3),
  42. shadowColor: Colors.black38,
  43. shadowBlur: 10,
  44. onClick: () {},
  45. margin: EdgeInsets.only(top: 12),
  46. ),Container(
  47. margin: EdgeInsets.only(top: 12),
  48. child: Row(
  49. children: [
  50. FSuper(
  51. width: 60,
  52. height: 60,
  53. backgroundColor: Color(0xffeeeeee),
  54. corner: FCorner.all(6),
  55. redPoint: true,
  56. redPointText: "1",
  57. ),
  58. FSuper(
  59. width: 60,
  60. redPoint: true,
  61. redPointText: "红包",
  62. redPointOffset: Offset(0, 13),
  63. child1: Icon(Icons.shop, size: 32),
  64. ),
  65. Expanded(child: Container(height: 60, color: Colors.transparent))
  66. ],
  67. ),
  68. ),FSuper(
  69. width: double.infinity,
  70. padding: EdgeInsets.fromLTRB(
  71. (16.0 + 25.0 + 12), 8, (0.0 + 8.0), 8),
  72. margin: EdgeInsets.fromLTRB(10, 10, 10, 0),
  73. corner: FCorner.all(6),
  74. backgroundColor: Color(0xfffff0e7),
  75. strokeColor: Color(0xfffee0cd),
  76. strokeWidth: 1,
  77. text: '警告提示的文案',
  78. textAlignment: Alignment.centerLeft,
  79. textAlign: TextAlign.left,
  80. spans: [
  81. TextSpan(text: "这是警告内容")
  82. ],
  83. child1: Transform.rotate(
  84. angle: 0,
  85. child: Icon(
  86. Icons.info,
  87. size: 25,
  88. color: Color(0xfffd6721),
  89. ),
  90. ),
  91. child1Alignment: Alignment.centerLeft,
  92. child1Margin: EdgeInsets.fromLTRB(16, 0, 0, 0),
  93. child2: Icon(
  94. Icons.close,
  95. size: 15,
  96. color: Colors.black38,
  97. ),
  98. child2Alignment: Alignment.topRight,
  99. child2Margin: EdgeInsets.fromLTRB(0, 8, 12, 0),
  100. onChild2Click: () {
  101. },
  102. ),FSuper(
  103. margin: EdgeInsets.only(top: 12),
  104. /// 开启 Neumorphism 支持
  105. ///
  106. /// Turn on Neumorphism support
  107. isSupportNeumorphism: true,
  108. /// 配置光源方向
  109. ///
  110. /// Configure light source direction
  111. /// 配置暗部阴影
  112. ///
  113. /// Configure dark shadows
  114. shadowColor: Colors.black87,
  115. /// 配置亮部阴影
  116. ///
  117. /// Configure highlight shadow
  118. highlightShadowColor: Colors.white24,
  119. /// 是否呈浮起视效
  120. ///
  121. /// Whether it is floating visual effect
  122. float: false,
  123. shadowOffset: Offset(0.0, 1.0),
  124. width: 50,
  125. height: 50,
  126. backgroundColor: Color(0xff28292f),
  127. corner: FCorner.all(40),
  128. child1: Icon(
  129. Icons.star,
  130. color: Color(0xfffff176),
  131. size: 23,
  132. ),
  133. ),
  134. FSuper(
  135. text: I18n.$,
  136. style: TextStyle(fontSize: 12, color: Colors.white),
  137. spans: [
  138. TextSpan(text: "998", style: TextStyle(color: Colors.red, fontSize: 14)),
  139. TextSpan(text: " 带回家", style: TextStyle(fontSize: 14)),
  140. ],
  141. corner: FCorner.all(2),
  142. cornerStyle: FCornerStyle.bevel,
  143. margin: EdgeInsets.only(top: 12),
  144. backgroundColor: Color.fromRGBO(122, 122, 122, 0.5),
  145. padding: EdgeInsets.all(4),
  146. )
  147. ],
  148. ),
  149. ),
  150. );
  151. }
  152. }