基础库
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.
 
 
 
 
 

87 lines
2.8 KiB

  1. import 'package:flutter/material.dart';
  2. class PddAuthDialog 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_pdd.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(0xFFFF6D6D),
  57. Color(0xFFFF2C2C),
  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. }