import 'package:aku_new_community/utils/headers.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; class BeeCustomPicker extends StatefulWidget { final Widget? body; final VoidCallback? onPressed; BeeCustomPicker({Key? key, this.body, this.onPressed}) : super(key: key); @override _BeeCustomPickerState createState() => _BeeCustomPickerState(); } class _BeeCustomPickerState extends State { @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(), ), ), ), widget.body!, ], ), ), height: Get.height / 3, ); } }