50 lines
1.8 KiB
Dart
50 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:jydj/assets_tool/app_colors.dart';
|
|
import 'package:jydj/hj_utils/screen.dart';
|
|
import 'package:jydj/routers/jump_router.dart';
|
|
import 'package:jydj/tools_base/widget/common_dialog.dart';
|
|
|
|
/// 动漫/图集的 VIP 门槛提示弹窗:只有文案和一个开通按钮
|
|
class VipACGDialog extends StatelessWidget {
|
|
const VipACGDialog({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return CommonDialog(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Text(
|
|
"温馨提示",
|
|
style: TextStyle(fontSize: 20, color: Colors.white.withValues(alpha: .9), fontWeight: FontWeight.w500),
|
|
),
|
|
24.sizeBoxH,
|
|
Text(
|
|
"本内容需要开通VIP会员\n开通会员 即可解锁查看完整版",
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(fontSize: 16, color: Colors.white.withValues(alpha: .45), height: 2),
|
|
),
|
|
24.sizeBoxH,
|
|
//开通按钮。margin 留在 InkWell 外,否则左右各 12 的空白会被算进点击热区
|
|
Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
|
child: InkWell(
|
|
enableFeedback: false,
|
|
onTap: () => pushToWalletPage(),
|
|
child: Container(
|
|
height: 44,
|
|
alignment: Alignment.center,
|
|
decoration: BoxDecoration(color: AppColors.actionRed, borderRadius: BorderRadius.circular(30)),
|
|
child: const Text(
|
|
"立即开通",
|
|
style: TextStyle(fontSize: 16, color: Color(0xff1F2029), fontWeight: FontWeight.w500),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|