Commit ddc269580a6b6fd12a683ee4daa74e3583413938
1 parent
8d1f93b4
feat:隐私协议弹窗按钮布局优化
Showing
1 changed file
with
19 additions
and
14 deletions
lib/common/widgets/webview_dialog.dart
@@ -41,21 +41,26 @@ class WebviewDialog extends StatelessWidget { | @@ -41,21 +41,26 @@ class WebviewDialog extends StatelessWidget { | ||
41 | } | 41 | } |
42 | })), | 42 | })), |
43 | actions: <Widget>[ | 43 | actions: <Widget>[ |
44 | - TextButton( | ||
45 | - child: | 44 | + Row( |
45 | + mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
46 | + children: [ | ||
47 | + TextButton( | ||
48 | + child: | ||
46 | const Text('同意并继续', style: TextStyle(color: Color(0xFFFBB621))), | 49 | const Text('同意并继续', style: TextStyle(color: Color(0xFFFBB621))), |
47 | - onPressed: () { | ||
48 | - // 处理接受按钮的点击事件 | ||
49 | - leftTap(); // 关闭对话框 | ||
50 | - }, | ||
51 | - ), | ||
52 | - TextButton( | ||
53 | - child: const Text('不同意,退出应用'), | ||
54 | - onPressed: () { | ||
55 | - // 处理拒绝按钮的点击事件 | ||
56 | - rightTap(); // 关闭对话框 | ||
57 | - }, | ||
58 | - ), | 50 | + onPressed: () { |
51 | + // 处理接受按钮的点击事件 | ||
52 | + leftTap(); // 关闭对话框 | ||
53 | + }, | ||
54 | + ), | ||
55 | + TextButton( | ||
56 | + child: const Text('不同意,退出应用'), | ||
57 | + onPressed: () { | ||
58 | + // 处理拒绝按钮的点击事件 | ||
59 | + rightTap(); // 关闭对话框 | ||
60 | + }, | ||
61 | + ), | ||
62 | + ], | ||
63 | + ) | ||
59 | ], | 64 | ], |
60 | ); | 65 | ); |
61 | } | 66 | } |