Dart 如何更改FloatingActionButton extended中的图标位置

Dart 如何更改FloatingActionButton extended中的图标位置,dart,flutter,Dart,Flutter,浮动上的图标ActionButton extended位于左侧,如何将图标置于右侧?课文之后 floatingActionButton: FloatingActionButton.extended( onPressed: (){}, label: Text("Next",), icon: Icon(Icons.arrow_forward, ), ), floatingAc

浮动上的图标ActionButton extended位于左侧,如何将图标置于右侧?课文之后

floatingActionButton: FloatingActionButton.extended(   
            onPressed: (){},
            label: Text("Next",),
            icon: Icon(Icons.arrow_forward,
            ),
      ),
      floatingActionButtonLocation: FloatingActionButtonLocation.endFloat 


我不认为您可以使用
FloatingActionButton
来实现这一点,但是您可以将RaisedButton配置为外观非常相似。
只需像使用FloatingActionButton一样使用它。

floatingActionButton: RaisedButton(
        child:  Container(
          height: 50.0,
          child: Row(
            mainAxisSize: MainAxisSize.min,
            children: <Widget>[
            const SizedBox(width: 16.0),
                   Text('Next', style: TextStyle(color: Colors.white, fontSize: 25),),
                   const SizedBox(width: 8.0),
                   Icon(Icons.arrow_forward, size: 30.0, color: Colors.white,),
                   const SizedBox(width: 20.0),
          ]),
        ),
        color: Colors.blue,
        shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(30.0),
                  ),
        onPressed: () {
          print('Do somenthing');
        },

      )
floatingActionButton:RaisedButton(
子:容器(
身高:50.0,
孩子:排(
mainAxisSize:mainAxisSize.min,
儿童:[
常量大小框(宽度:16.0),
Text('Next',样式:TextStyle(颜色:Colors.white,fontSize:25),),
const SizedBox(宽度:8.0),
图标(Icons.arrow_forward,大小:30.0,颜色:Colors.white,),
const SizedBox(宽度:20.0),
]),
),
颜色:颜色,蓝色,
形状:圆形矩形边框(
边界半径:边界半径。圆形(30.0),
),
已按下:(){
打印(“做某事”);
},
)

希望这有帮助。

没有任何直接的方法可以做到这一点。 但作为一种解决方法,您可以将
小部件(包含
文本
图标
小部件)传递给
标签
参数

floatingActionButton: FloatingActionButton.extended(
    onPressed: () {},
    label: Row(
      children: <Widget>[Text("Proceed"), Icon(Icons.arrow_forward)],
    ),
    icon: Container(),
  ),
floatingActionButton:floatingActionButton.extended(
按下:(){},
标签:Row(
子项:[文本(“继续”)、图标(图标。向前箭头)],
),
图标:Container(),
),
希望能有帮助