/**const FloatingActionButton({Key key,this.child,//按钮显示的内容this.tooltip,//长按时显示的提示this.foregroundColor,//前景色,影响到文字颜色this.backgroundColor,//背景色this.heroTag = const _DefaultHeroTag(),//hero效果使用的tag,系统默认会给所有FAB使用同一个tag,方便做动画效果this.elevation = 6.0,//未点击时阴影值this.highlightElevation = 12.0,//点击下阴影值@required this.onPressed,this.mini = false,//FloatingActionButton有regular, mini, extended三种类型,默认为false即regular类型,true时按钮变小即mini类型,extended需要通过FloatingActionButton.extended()创建,可以定制显示内容this.shape = const CircleBorder(),//定义FAB的shape,设置shape时,默认的elevation将会失效,默认为CircleBorderthis.clipBehavior = Clip.none,this.materialTapTargetSize,this.isExtended = false,//是否为”extended”类型})*/
设置位置
设置FloatingActionButton位置//centerDocked 底部中间//endDocked 底部右侧//centerFloat 中间偏上//endFloat 底部偏上home: Scaffold(appBar: AppBar(title: Text("FloatingActionButton"),),body: Container(),floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,floatingActionButton: FloatingActionButton(onPressed: () => print("FloatingActionButton"),child: Text("button"),),),
