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.
44 lines
1.1 KiB
44 lines
1.1 KiB
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:aku_new_community/base/base_style.dart';
|
|
|
|
class FinishResultImage extends StatelessWidget {
|
|
const FinishResultImage({
|
|
Key? key,
|
|
required this.status,
|
|
this.haveInHandStatus = false,
|
|
}) : super(key: key);
|
|
|
|
final bool status;
|
|
final bool haveInHandStatus;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
alignment: Alignment.center,
|
|
width: 110.w,
|
|
height: 110.w,
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(55.w),
|
|
color: this.haveInHandStatus
|
|
? Colors.yellow.shade900
|
|
: this.status
|
|
? kPrimaryColor
|
|
: kDangerColor,
|
|
),
|
|
child: Icon(
|
|
this.haveInHandStatus
|
|
? CupertinoIcons.exclamationmark
|
|
: this.status
|
|
? CupertinoIcons.checkmark
|
|
: CupertinoIcons.multiply,
|
|
size: 70.w,
|
|
color: Colors.white,
|
|
),
|
|
);
|
|
}
|
|
}
|