|
|
@@ -95,23 +95,47 @@ void showAddDesktopShortcutTipsDialog(
|
|
|
builder: (_) {
|
|
|
return IntrinsicHeight(
|
|
|
child: Container(
|
|
|
- color: ColorName.white,
|
|
|
+ width: 280.w,
|
|
|
+ padding: EdgeInsets.only(
|
|
|
+ left: 16.w, right: 16.w, top: 28.h, bottom: 24.h),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: ColorName.white,
|
|
|
+ borderRadius: BorderRadius.circular(12.w)),
|
|
|
child: Column(
|
|
|
children: [
|
|
|
Text(
|
|
|
- '添加到桌面可能会失败,需要去设置页-权限进行授权,授权后再次尝试即可',
|
|
|
+ '“小听快听”已尝试添加到桌面',
|
|
|
style: TextStyle(
|
|
|
- fontSize: 14.sp, color: ColorName.primaryTextColor),
|
|
|
+ fontWeight: FontWeight.bold,
|
|
|
+ fontSize: 15.sp,
|
|
|
+ color: ColorName.primaryTextColor),
|
|
|
),
|
|
|
+ SizedBox(height: 12.h),
|
|
|
+ Expanded(
|
|
|
+ child: Text(
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ '若添加失败,请前往系统设置,为小听打开“创建桌面快捷方式”的权限。',
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 14.sp, color: ColorName.secondaryTextColor),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SizedBox(height: 32.h),
|
|
|
GestureDetector(
|
|
|
onTap: () {
|
|
|
SmartDialog.dismiss();
|
|
|
onConfirm.call();
|
|
|
},
|
|
|
- child: SizedBox(
|
|
|
- width: 100.w,
|
|
|
- height: 30.w,
|
|
|
- child: Center(child: Text('确认'))))
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: ColorName.colorPrimary,
|
|
|
+ borderRadius: BorderRadius.circular(8.w)),
|
|
|
+ height: 38.w,
|
|
|
+ child: Center(
|
|
|
+ child: Text(
|
|
|
+ StringName.sure.tr,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 14.sp, color: ColorName.white),
|
|
|
+ ))))
|
|
|
],
|
|
|
),
|
|
|
),
|