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.
aku_new_community/lib/widget/picker/bee_custom_picker.dart

46 lines
1.2 KiB

import 'package:flutter/material.dart';
3 years ago
import 'package:get/get.dart';
3 years ago
import 'package:aku_new_community/utils/headers.dart';
class BeeCustomPicker extends StatefulWidget {
3 years ago
final Widget? body;
final VoidCallback? onPressed;
3 years ago
3 years ago
BeeCustomPicker({Key? key, this.body, this.onPressed}) : super(key: key);
@override
_BeeCustomPickerState createState() => _BeeCustomPickerState();
}
class _BeeCustomPickerState extends State<BeeCustomPicker> {
@override
Widget build(BuildContext context) {
return SizedBox(
child: Material(
borderRadius: BorderRadius.vertical(top: Radius.circular(10)),
child: Column(
children: [
SizedBox(
height: 48,
child: NavigationToolbar(
leading: TextButton(
onPressed: Get.back,
child: '取消'.text.black.make(),
),
trailing: TextButton(
onPressed: widget.onPressed,
child: '确定'.text.black.make(),
),
),
),
3 years ago
widget.body!,
],
),
),
height: Get.height / 3,
);
}
}