flutter中DataTable表格部件
DataTable参数DataTable({ Key key, @required this.columns,columns this.sortColumnIndex, this.sortAscending = true, this.o...
DataTable参数DataTable({ Key key, @required this.columns,columns this.sortColumnIndex, this.sortAscending = true, this.o...
Chip参数const Chip({ Key key, this.avatar,//标签左侧Widget,一般为小图标 @required this.label,//标签 this.labelStyle, th...
snckBar部件用来在底部提示一些信息const SnackBar({ Key key, @required this.content,//提示内容 this.backgroundColor,//背景 t...
Scaffold.of() called with a context that does not contain a Scaffold.当你在 dart 文件中要使用 SnackBar 时,需要调用...
showModalBottomSheet方法可以弹出一个Material风格的底部菜单列表模态对话框,示例如下:// 弹出底部菜单列表模态对话框Future<int> _show...
AlertDialogconst AlertDialog({ Key key, this.title, //对话框标题组件 this.titlePadding, // 标题填充 this.titleTextStyle, /...
showDatePicker参数Future<DateTime> showDatePicker ({ @required BuildContext context, // 上下文 @required DateTime initialDate,...
Slider滑动选择器参数const Slider({ Key key, @required this.value,//默认值 @required this.onChanged,//滑动回调函数 this.onC...
Switch参数const Switch({ Key key, @required this.value,//true:开 false:关 @required this.onChanged,//变化时回调 this.act...