基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

73 lines
1.7 KiB

  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/material.dart';
  3. /*提现页面*/
  4. class WithdrawPage extends StatefulWidget {
  5. @override
  6. _WithdrawPageState createState() => _WithdrawPageState();
  7. }
  8. class _WithdrawPageState extends State<WithdrawPage> {
  9. @override
  10. Widget build(BuildContext context) {
  11. return Scaffold(
  12. appBar: _createNav(),
  13. body: SafeArea(
  14. child: _WithdrawContainer(),
  15. ),
  16. );
  17. }
  18. // 导航栏
  19. Widget _createNav() {
  20. return CupertinoNavigationBar(
  21. leading: Navigator.canPop(context)
  22. ? GestureDetector(
  23. child: Container(
  24. padding: EdgeInsets.zero,
  25. child: Icon(
  26. Icons.arrow_back_ios,
  27. size: 20,
  28. ),
  29. ),
  30. onTap: () {
  31. if (Navigator.canPop(context)) {
  32. Navigator.pop(context);
  33. }
  34. },
  35. )
  36. : Container(),
  37. middle: Text(
  38. '提现',
  39. style: TextStyle(
  40. fontSize: 15,
  41. color: Color(0xff333333),
  42. ),
  43. ),
  44. trailing: GestureDetector(
  45. child: Text(
  46. '明细',
  47. style: TextStyle(fontSize: 13, color: Color(0xff333333)),
  48. ),
  49. onTap: () {},
  50. ),
  51. );
  52. }
  53. }
  54. class _WithdrawContainer extends StatefulWidget {
  55. @override
  56. _WithdrawContainerState createState() => _WithdrawContainerState();
  57. }
  58. class _WithdrawContainerState extends State<_WithdrawContainer> {
  59. @override
  60. Widget build(BuildContext context) {
  61. return SingleChildScrollView(
  62. child: Column(
  63. children: <Widget>[],
  64. ),
  65. );
  66. }
  67. }