添加积分规则说明页

hmxc
张萌 3 years ago
parent 4f1aab5172
commit 2e709bdb41

@ -1123,6 +1123,10 @@ class $AssetsStaticGen {
AssetGenImage get reviewing =>
const AssetGenImage('assets/static/reviewing.webp');
/// File path: assets/static/rule_explain.png
AssetGenImage get ruleExplain =>
const AssetGenImage('assets/static/rule_explain.png');
/// File path: assets/static/sign_in_background.png
AssetGenImage get signInBackground =>
const AssetGenImage('assets/static/sign_in_background.png');

@ -1,9 +1,11 @@
import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/pages/personal/intergral/progress_paint.dart';
import 'package:aku_new_community/pages/personal/intergral/rule_explain_page.dart';
import 'package:aku_new_community/widget/bee_back_button.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class integralCenterPage extends StatefulWidget {
@ -174,7 +176,9 @@ class _integralCenterPageState extends State<integralCenterPage> {
),
actions: [
IconButton(
onPressed: () {},
onPressed: () {
Get.to(() => RuleExplainPage());
},
icon: Icon(
CupertinoIcons.question_circle,
size: 32.sp,

@ -0,0 +1,45 @@
import 'package:aku_new_community/gen/assets.gen.dart';
import 'package:aku_new_community/widget/bee_back_button.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
class RuleExplainPage extends StatefulWidget {
const RuleExplainPage({Key? key}) : super(key: key);
@override
_RuleExplainPageState createState() => _RuleExplainPageState();
}
class _RuleExplainPageState extends State<RuleExplainPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
extendBodyBehindAppBar: true,
extendBody: true,
appBar: AppBar(
backgroundColor: Colors.transparent,
title: '规则说明'.text.size(32.sp).white.make(),
leading: BeeBackButton(
color: Colors.white,
),
),
body: Container(
width: double.infinity,
height: double.infinity,
decoration: BoxDecoration(
color: Color(0xFFF9F9F9),
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Color(0xFF565F6E).withOpacity(0.85),
Color(0xFF131E30).withOpacity(0.85)
])),
alignment: Alignment.center,
padding: EdgeInsets.only(left: 32.w, right: 32.w, top: 60.w),
child: Assets.static.ruleExplain.image(),
),
);
}
}
Loading…
Cancel
Save