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.

32 lines
1.1 KiB

import 'package:aku_new_community/base/base_style.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 SexBottomSheet extends StatelessWidget {
final Function(String value) onChoose;
const SexBottomSheet({Key? key, required this.onChoose}) : super(key: key);
@override
Widget build(BuildContext context) {
return CupertinoActionSheet(
title:
'选择性别'.text.size(32.sp).bold.color(ktextPrimary).isIntrinsic.make(),
cancelButton: TextButton(
onPressed: () => Get.back(),
child: '取消'.text.size(28.sp).color(ktextSubColor).isIntrinsic.make()),
actions: [
CupertinoActionSheetAction(
onPressed: onChoose(''),
child: ''.text.size(30.sp).color(ktextPrimary).isIntrinsic.make()),
CupertinoActionSheetAction(
onPressed: onChoose(''),
child: ''.text.size(30.sp).color(ktextPrimary).isIntrinsic.make())
],
);
}
}