menusBuilder property
自定义弹出菜单布局
Function - 参数1 - 相册选择方式回调函数 Function - 参数2 - 相机拍摄选择模式
例子: menusBuilder: (a,b){ return Container( color: Colors.pink, child: SingleChildScrollView( child: Column(children: TextButton(child: Text('图库选择'),onPressed: () async { await a(); },), TextButton(child: Text('相机选择'),onPressed: () async { await b(); },) ,) ), ); },
Implementation
final MenusBuilder? menusBuilder;