基础库
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

87 wiersze
2.8 KiB

  1. import 'package:flutter/material.dart';
  2. class TaobaoAuthAlert extends StatelessWidget {
  3. @override
  4. Widget build(BuildContext context) {
  5. return GestureDetector(
  6. child: Scaffold(
  7. backgroundColor: Colors.transparent,
  8. body: Center(
  9. child: GestureDetector(
  10. child: Container(
  11. padding: EdgeInsets.all(20),
  12. width: 230,
  13. height: 226,
  14. decoration: BoxDecoration(
  15. color: Colors.white,
  16. borderRadius: BorderRadius.circular(13),
  17. ),
  18. child: Column(
  19. children: <Widget>[
  20. Container(
  21. width: 62,
  22. height: 62,
  23. child: Image.asset(
  24. 'assets/images/icon_taobao.png',
  25. package: 'zhiying_comm',
  26. ),
  27. ),
  28. Padding(
  29. padding: EdgeInsets.only(top: 10, bottom: 4),
  30. child: Text(
  31. '请完成淘宝授权',
  32. style: TextStyle(
  33. color: Color(0xff333333),
  34. fontSize: 15,
  35. ),
  36. )),
  37. Expanded(
  38. child: Text(
  39. '淘宝授权后下单或分享商品\n可以获得收益哦',
  40. textAlign: TextAlign.center,
  41. style: TextStyle(
  42. color: Color(0xff999999),
  43. fontSize: 12,
  44. ),
  45. ),
  46. ),
  47. GestureDetector(
  48. child: Container(
  49. width: 180,
  50. height: 34,
  51. decoration: BoxDecoration(
  52. gradient: LinearGradient(
  53. begin: Alignment.topCenter,
  54. end: Alignment.bottomCenter,
  55. colors: [
  56. Color(0xFFFF8E00),
  57. Color(0xFFFF5500),
  58. ],
  59. ),
  60. borderRadius: BorderRadius.circular(17),
  61. ),
  62. child: Center(
  63. child: Text(
  64. '前往授权',
  65. style: TextStyle(fontSize: 12, color: Colors.white),
  66. ),
  67. ),
  68. ),
  69. onTap: () {
  70. Navigator.pop(context, true);
  71. },
  72. ),
  73. ],
  74. ),
  75. ),
  76. onTap: () {},
  77. ),
  78. ),
  79. ),
  80. onTap: () {
  81. Navigator.pop(context);
  82. },
  83. );
  84. }
  85. }