YSVipCode.dart 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/cupertino.dart';
  3. import 'package:ysairplane2/base/YSBase.dart';
  4. class YSVipCode extends StatefulWidget {
  5. @override
  6. _YSVipCodeState createState() => _YSVipCodeState();
  7. }
  8. class _YSVipCodeState extends State<YSVipCode> {
  9. @override
  10. Widget build(BuildContext context) {
  11. return YSBase(
  12. ystitle: '二维码',
  13. yschild: Container(
  14. height: MediaQuery.of(context).size.height-MediaQuery.of(context).padding.top-44,
  15. width: MediaQuery.of(context).size.width,
  16. color: Color(0xFFF5F6F8),
  17. child: Column(
  18. children: [
  19. Container(
  20. margin: EdgeInsets.only(top: 60,left: 20,right: 20),
  21. padding: EdgeInsets.all(15),
  22. decoration: BoxDecoration(
  23. color: Colors.white,
  24. borderRadius: BorderRadius.all(Radius.circular(10))
  25. ),
  26. child: Column(
  27. children: [
  28. Row(
  29. children: [
  30. Container(
  31. height: 70,
  32. width: 70,
  33. margin: EdgeInsets.only(right: 10),
  34. decoration: BoxDecoration(
  35. color: Colors.lightBlue,
  36. borderRadius: BorderRadius.all(Radius.circular(5))
  37. ),
  38. ),
  39. Container(
  40. height: 60,
  41. width: MediaQuery.of(context).size.width-165,
  42. child: Column(
  43. crossAxisAlignment: CrossAxisAlignment.start,
  44. mainAxisAlignment: MainAxisAlignment.spaceAround,
  45. children: [
  46. Text('Allen',style: TextStyle(fontSize: 14,color: Color(0xFF141418),fontWeight: FontWeight.bold),overflow: TextOverflow.ellipsis,),
  47. Text('15829646496',style: TextStyle(fontSize: 12,color: Color(0xFF777777)),)
  48. ],
  49. ),
  50. ),
  51. ],
  52. ),
  53. Container(
  54. margin: EdgeInsets.only(top: 30,bottom: 30),
  55. height: MediaQuery.of(context).size.width-100,
  56. width: MediaQuery.of(context).size.width-100,
  57. color: Colors.lightGreen,
  58. ),
  59. Text('编号:19999JUDHNMK99000',style: TextStyle(fontSize: 12,color: Color(0xFF777777)),)
  60. ],
  61. ),
  62. )
  63. ],
  64. ),
  65. ),
  66. );
  67. }
  68. }