精华内容
参与话题
问答
  • Flutter 按钮

    2019-11-25 10:31:18
    Material组件库中的按钮 Material 组件库中提供了多种按钮组件如RaisedButton、FlatButton、OutlineButton等。它们都是直接或间接对RawMaterialButton组件的包装定制。所以他们大多数属性都和RawMaterialButton一样...

    Material组件库中的按钮

    Material 组件库中提供了多种按钮组件如RaisedButton、FlatButton、OutlineButton等。它们都是直接或间接对RawMaterialButton组件的包装定制。所以他们大多数属性都和RawMaterialButton一样。
    所有Material 库中的按钮都有如下相同点:

    • 按下时都会有“水波动画”(又称“涟漪动画”,就是点击时按钮上会出现水波荡漾的动画)
    • 有一个onPressed属性来设置点击回调,当按钮按下时会执行该回调,如果不提供该回调则按钮会处于禁用状态,禁用状态不响应用户点击。

    RaisedButton

    RaisedButton 即"漂浮"按钮,它默认带有阴影和灰色背景。按下后,阴影会变大
    在这里插入图片描述

    const RaisedButton({
        Key key,
        @required VoidCallback onPressed,
        ValueChanged<bool> onHighlightChanged,
        ButtonTextTheme textTheme,
        Color textColor,
        Color disabledTextColor,
        Color color,
        Color disabledColor,
        Color highlightColor,
        Color splashColor,
        Brightness colorBrightness,
        double elevation,
        double highlightElevation,
        double disabledElevation,
        EdgeInsetsGeometry padding,
        ShapeBorder shape,
        Clip clipBehavior = Clip.none,
        MaterialTapTargetSize materialTapTargetSize,
        Duration animationDuration,
        Widget child,
      })
    

    属性:

    名称 类型 说明
    onHighlightChanged ValueChanged 水波纹高亮变化回调,按下返回true,抬起返回false
    textTheme ButtonTextTheme 按钮的主题
    textColor Color 文字的颜色
    disabledTextColor Color 按钮禁用时候文字的颜色
    color Color 按钮的背景颜色
    disabledColor Color 按钮被禁用的时候显示的背景颜色
    highlightColor Color 点击或者toch控件高亮的时候显示在控件上面,水波纹下面的颜色
    splashColor Color 水波纹的颜色
    colorBrightness Brightness 按钮主题高亮
    elevation double 按钮下面的阴影
    highlightElevation double 高亮时候的阴影
    disabledElevation double 按下的时候的阴影
    padding EdgeInsetsGeometry 内边距
    shape ShapeBorder 设置形状
    clipBehavior Clip 裁剪小部件内容
    materialTapTargetSize MaterialTapTargetSize 点击目标的最小尺寸
    animationDuration Duration 动画持续的时间
    child Widget 子Widget

    FlatButton

    在这里插入图片描述
    FlatButton即扁平按钮,默认背景透明并不带阴影。按下后,会有背景色

     const FlatButton({
        Key key,
        @required VoidCallback onPressed,
        ValueChanged<bool> onHighlightChanged,
        ButtonTextTheme textTheme,
        Color textColor,
        Color disabledTextColor,
        Color color,
        Color disabledColor,
        Color highlightColor,
        Color splashColor,
        Brightness colorBrightness,
        EdgeInsetsGeometry padding,
        ShapeBorder shape,
        Clip clipBehavior = Clip.none,
        MaterialTapTargetSize materialTapTargetSize,
        @required Widget child,
      }) 
    

    属性参见RaisedButton

    OutlineButton

    OutlineButton默认有一个边框,不带阴影且背景透明。按下后,边框颜色会变亮、同时出现背景和阴影(较弱)
    在这里插入图片描述

     const OutlineButton({
        Key key,
        @required VoidCallback onPressed,
        ButtonTextTheme textTheme,
        Color textColor,
        Color disabledTextColor,
        Color color,
        Color highlightColor,
        Color splashColor,
        double highlightElevation,
        this.borderSide,
        this.disabledBorderColor,
        this.highlightedBorderColor,
        EdgeInsetsGeometry padding,
        ShapeBorder shape,
        Clip clipBehavior = Clip.none,
        Widget child,
      })
    

    属性:(其他属性见上表)

    名称 类型 说明
    borderSide BorderSide 边框大小
    disabledBorderColor Color 禁用时边框颜色
    highlightedBorderColor Color 可用时按下边框颜色

    IconButton

    IconButton是一个可点击的Icon,不包括文字,默认没有背景,点击后会出现背景
    在这里插入图片描述
    例子:

    IconButton(
      icon: Icon(Icons.thumb_up),
      onPressed: () {},
    )
    

    带图标的按钮

    RaisedButton、FlatButton、OutlineButton都有一个icon 构造函数,通过它可以轻松创建带图标的按钮
    在这里插入图片描述
    例子:

    RaisedButton.icon(
      icon: Icon(Icons.send),
      label: Text("发送"),
      onPressed: _onPressed,
    ),
    OutlineButton.icon(
      icon: Icon(Icons.add),
      label: Text("添加"),
      onPressed: _onPressed,
    ),
    FlatButton.icon(
      icon: Icon(Icons.info),
      label: Text("详情"),
      onPressed: _onPressed,
    ),
    
    展开全文
  • Flutter 按钮组件

    2020-01-08 15:33:02
    文件结构: 内容承接:... routes.dart import 'package:flutter/material.dart'; import '../pages/tabs.dart'; import '../pages/Button.dart'; final route...

    文件结构:

    内容承接:https://blog.csdn.net/u013227399/article/details/103787189

    routes.dart

    import 'package:flutter/material.dart';
    import '../pages/tabs.dart';
    import '../pages/Button.dart';
    
    final routes = {
      '/': (context) => Tabs(),
      '/button':(context) => ButtonPage(),
    };
    
    var onGenerateRoute=(RouteSettings settings){
      //统一处理
      final String name = settings.name;
      final Function pageContentBuilder = routes[name];
      if (pageContentBuilder != null) {
        if (settings.arguments != null) {
          final Route route = MaterialPageRoute(
            builder: (context) =>
                pageContentBuilder(context, arguments: settings.arguments),
          );
          return route;
        } else {
          final Route route = MaterialPageRoute(
            builder: (context) => pageContentBuilder(context),
          );
          return route;
        }
      }
    };
    

    button.dart

    import 'package:flutter/material.dart';
    
    class ButtonPage extends StatelessWidget {
      const ButtonPage({Key key}) : super(key: key);
    
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text('按钮演示'),
          ),
          body: ListView(
            children: <Widget>[
              Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  Text('以下为RaisedButton演示'),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      RaisedButton(
                        child: Text('普通按钮'),
                        onPressed: () {
                          print('普通按钮');
                        },
                      ),
                      SizedBox(width: 10),
                      RaisedButton(
                        child: Text('颜色按钮'),
                        color: Colors.blue,
                        textColor: Colors.white,
                        onPressed: () {
                          print('颜色按钮');
                        },
                      ),
                      SizedBox(width: 10),
                      RaisedButton(
                        child: Text('阴影按钮'),
                        color: Colors.blue,
                        textColor: Colors.white,
                        elevation: 10.0,
                        onPressed: () {
                          print('阴影按钮');
                        },
                      ),
                    ],
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      RaisedButton(
                        child: Text('禁用按钮'), //按钮文本
                        elevation: 10.0, //阴影
                        disabledColor: Colors.black26, //禁用按钮颜色
                        disabledTextColor: Colors.black26, //禁用文本颜色
                        onPressed: null, //禁用按钮
                      ),
                      SizedBox(width: 10),
                      Container(
                        width: 100,
                        child: RaisedButton(
                          child: Text('宽度按钮'),
                          onPressed: () {
                            print('宽度按钮');
                          },
                        ),
                      ),
                      SizedBox(width: 10),
                      RaisedButton.icon(
                        icon: Icon(Icons.search),
                        label: Text('图标按钮'),
                        onPressed: () {
                          print('图标按钮');
                        },
                      )
                    ],
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      Expanded(
                        child: Container(
                          child: RaisedButton(
                            child: Text('自适应按钮'),
                            onPressed: () {
                              print('自适应按钮');
                            },
                          ),
                        ),
                      )
                    ],
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      RaisedButton(
                        child: Text('圆角按钮'), //按钮文本
                        elevation: 10.0, //阴影
                        shape: RoundedRectangleBorder(
                          borderRadius: BorderRadius.circular(10), //圆角按钮
                        ),
                        color: Colors.blue, //按钮颜色
                        textColor: Colors.white, //按钮文字颜色
                        onPressed: () {
                          print('圆角按钮');
                        },
                      ),
                      SizedBox(width: 10),
                      Container(
                        width: 100,
                        height: 100,
                        child: RaisedButton(
                          child: Text('圆形按钮'), //按钮文本
                          elevation: 10.0, //阴影
                          shape: CircleBorder(
                            side: BorderSide(color: Colors.white), //圆形按钮
                          ),
                          splashColor: Colors.red, //点击时水波纹颜色
                          color: Colors.blue, //按钮颜色
                          textColor: Colors.white, //按钮文字颜色
                          onPressed: () {
                            print('圆形按钮');
                          },
                        ),
                      ),
                    ],
                  ),
                  SizedBox(height: 20),
                  Text('以下为FlatButton演示'),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      FlatButton(
                        child: Text('扁平化按钮'),
                        color: Colors.red,
                        textColor: Colors.white,
                        onPressed: () {
                          print('扁平化按钮');
                        },
                      ),
                    ],
                  ),
                  SizedBox(height: 20),
                  Text('以下为OutlineButton演示'),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      OutlineButton(
                        child: Text('线框按钮'),
                        // color: Colors.red, //无效
                        // textColor: Colors.red,
                        onPressed: () {
                          print('线框按钮');
                        },
                      ),
                    ],
                  ),
                  SizedBox(height: 20),
                  Text('以下为IconButton演示'),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      IconButton(
                        icon: Icon(Icons.search),
                        onPressed: () {
                          print('图标按钮');
                        },
                      ),
                    ],
                  ),
                  SizedBox(height: 20),
                  Text('以下为ButtonBar演示'),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      ButtonBar(
                        children: <Widget>[
                          RaisedButton(
                            child: Text('按钮组1'),
                            onPressed: null,
                          ),
                          RaisedButton(
                            child: Text('按钮组2'),
                            onPressed: () {
                              print('按钮组2');
                            },
                          ),
                        ],
                      ),
                    ],
                  ),
                  SizedBox(height: 20),
                  Text('以下为自定义按钮演示'),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      MyButton(
                        text: '自定义按钮',
                        width: 120,
                        height: 30,
                        pressed: () {
                          print('点击自定义按钮');
                        },
                      ),
                    ],
                  ),
                  SizedBox(height: 20),
                ],
              ),
            ],
          ),
        );
      }
    }
    
    class MyButton extends StatelessWidget {
      final text;
      final pressed;
      final double width;
      final double height;
      const MyButton(
          {this.text = '', this.pressed = null, this.width = 80, this.height = 30});
    
      @override
      Widget build(BuildContext context) {
        return Container(
          width: this.width,
          height: this.height,
          child: RaisedButton(
            child: Text(this.text),
            onPressed: this.pressed,
          ),
        );
      }
    }
    

    tabs.dart

    import 'package:flutter/material.dart';
    import 'tabs/home.dart';
    import 'tabs/category.dart';
    import 'tabs/user.dart';
    
    class Tabs extends StatefulWidget {
      final index;
      Tabs({Key key, this.index = 0}) : super(key: key);
      @override
      _TabsState createState() => _TabsState(this.index);
    }
    
    class _TabsState extends State<Tabs> {
      int _currentIndex;
      _TabsState(index) {
        this._currentIndex = index;
      }
    
      List _pageList = [
        HomePage(),
        CategoryPage(),
        UserPage(),
      ];
    
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text('按钮组件'),
          ),
          floatingActionButton: Container(
            width: 80,
            height: 80,
            padding: EdgeInsets.all(10),
            margin: EdgeInsets.only(bottom: 20),
            //画圆边
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(40),
              color: Colors.white,
            ),
            child: FloatingActionButton(
              child: Icon(Icons.add),
              onPressed: () {
                print('浮动按钮');
                //触发分类按钮
                setState(() {
                  this._currentIndex = 1;
                });
              },
              backgroundColor: this._currentIndex == 1 ? Colors.blue: Colors.red, //选中效果
            ),
          ),
          floatingActionButtonLocation:
              FloatingActionButtonLocation.centerDocked, //更改浮动位置
          body: this._pageList[this._currentIndex],
          bottomNavigationBar: BottomNavigationBar(
            currentIndex: this._currentIndex,
            onTap: (int index) {
              setState(() {
                this._currentIndex = index;
              });
            },
            items: [
              BottomNavigationBarItem(
                icon: Icon(Icons.home),
                title: Text('首页'),
              ),
              BottomNavigationBarItem(
                icon: Icon(Icons.category),
                title: Text('分类'),
              ),
              BottomNavigationBarItem(
                icon: Icon(Icons.supervised_user_circle),
                title: Text('会员'),
              ),
            ],
          ),
          drawer: Drawer(
            child: Column(
              children: <Widget>[
                Row(
                  children: <Widget>[
                    Expanded(
                      child: UserAccountsDrawerHeader(
                        accountName: Text('账户名称'),
                        accountEmail: Text('123456789@qq.com'),
                        currentAccountPicture: CircleAvatar(
                          backgroundImage: NetworkImage(
                              'https://www.itying.com/images/flutter/3.png'),
                        ), //用户头像
                        decoration: BoxDecoration(
                          image: DecorationImage(
                            image: NetworkImage(
                                'https://www.itying.com/images/flutter/2.png'),
                            fit: BoxFit.cover,
                          ),
                        ), //背景
                        otherAccountsPictures: <Widget>[
                          Image.network(
                              'https://www.itying.com/images/flutter/4.png'),
                          Image.network(
                              'https://www.itying.com/images/flutter/5.png'),
                          Text('data')
                        ],
                      ),
                    ),
                  ],
                ),
                ListTile(
                  leading: CircleAvatar(
                    child: Icon(Icons.home),
                  ),
                  title: Text('我的空间'),
                  //侧边栏跳转
                  onTap: () {
                    Navigator.of(context).pop(); //隐藏侧边栏
                    Navigator.pushNamed(context, '/user');
                  },
                ),
                Divider(), // 增加一条线
                ListTile(
                  leading: CircleAvatar(
                    child: Icon(Icons.people),
                  ),
                  title: Text('用户中心'),
                ),
                Divider(), // 增加一条线
                ListTile(
                  leading: CircleAvatar(
                    child: Icon(Icons.settings),
                  ),
                  title: Text('设置'),
                ),
              ],
            ),
          ),
        );
      }
    }
    

     

    效果展示:

    注:浮动按钮的主要片段

     

     

    展开全文
  • Flutter按钮集合

    2019-12-25 19:15:57
    苹果弹框 void _showTips(String title, String content) { showCupertinoDialog( context: context, builder: (BuildContext context) { return CupertinoAlertDialog( title: Text...

    苹果弹框
    在这里插入图片描述

    void _showTips(String title, String content) {
        showCupertinoDialog(
          context: context,
          builder: (BuildContext context) {
            return CupertinoAlertDialog(
              title: Text(title),
              content: Text(content),
              actions: <Widget>[
                CupertinoDialogAction(
                  child: const Text('朕知道了~'),
                  onPressed: () {
                    Navigator.of(context).pop();
                  },
                ),
              ],
            );
          },
        );
      }
    
    展开全文
  • flutter 按钮组件

    2020-04-16 15:30:12
    1、普通按钮RaisedButton 无法自己设置高宽,可以通过父元素或通过给child组件内部组件外包一个Padding组件来设置高宽 RaisedButton( child: onPressed 点击事件,设置后点击按钮会产生水纹动画 textTheme:...
    1、普通按钮RaisedButton
    	无法自己设置高宽,可以通过父元素或通过给child组件内部组件外包一个Padding组件来设置高宽
    	
    	RaisedButton(
    		child:
    		onPressed  点击事件,设置后点击按钮会产生水纹动画
    		textTheme:ButtonTextTheme.normal/ButtonTextTheme.accent/ButtonTextTheme.primary   字体主题颜色
    		textColor  字体颜色
    		disabledTextColor,   按钮禁用时候文字的颜色
    		color,  按钮的背景颜色
    		highlightColor,  点击或者toch控件高亮的时候显示在控件上面,水波纹下面的颜色
    		splashColor,  水波纹的颜色
    		colorBrightness,  按钮主题高亮
    		elevation,  按钮下面的阴影
    		highlightElevation,  高亮时候的阴影
    		disabledElevation,  按下的时候的阴影
    		focusColor,
    		hoverColor,
    		shape:  设置形状
    		
    			(1) 圆角形状
    			RoundedRectangleBorder(
    	            borderRadius: BorderRadius.circular(20),
    	            side:BorderSide(color: ,width:,style: BorderStyle.solid/none) 边框样式
    	          )
    	        (2)圆形
    	        CircleBorder(
    		             side: BorderSide(color:Colors.blue,width: 1,style:BorderStyle.solid) 边框
    		      ),
    		...
    	)
    
    文字带图标按钮
        RaisedButton.icon(
          onPressed: (){}, 
          icon: Icon(Icons.home), 
          label: Text('带图标'),
         ),
    
    扁平按钮,可以.icon带图标
         FlatButton( 
          child: Text('按钮'),
          onPressed: (){},
          color: Colors.blue,
        ),
    
    边框按钮背景无色,可以.icon带图标
        OutlineButton( //边框按钮背景无色,可以.icon带图标
            child: Text('扁平'),
            onPressed: (){},
            borderSide:BorderSide(color: Colors.red,width: 1,style:BorderStyle.solid) ,//设置边框
        )
    
    浮动按钮,圆形带阴影,一般在Scaffold中设置
         FloatingActionButton(
           child: Text("浮动"),
           onPressed: (){},
           backgroundColor: Colors.blue,
         )
    
    按钮组,水平排列多个按钮
    	ButtonBar(
          children: <Widget>[
    			按钮一
    			按钮二
          ]),
    

    代码示例:

    import 'package:flutter/material.dart';
    
    class Home4 extends StatefulWidget {
      Home4({Key key}) : super(key: key);
    
      @override
      _Home2State createState() => _Home2State();
    }
    
    class _Home2State extends State<Home4> {
      @override
      Widget build(BuildContext context) {
        return Container(
           child: Column(children: <Widget>[
    
            RaisedButton(
              child: Text('添加回调函数才生效'),
              onPressed: (){},
              color:Theme.of(context).accentColor,
              elevation: 20.0,
              shape:RoundedRectangleBorder(
                borderRadius: BorderRadius.circular(20),
                // side:BorderSide(color: ,width:,style: BorderStyle.solid/none)
              )
            ),
    
            Divider(),
    
            //文字前加字体图标的按钮,其他属性和普通按钮相同
            RaisedButton.icon(
              onPressed: (){}, 
              icon: Icon(Icons.home), 
              label: Text('带图标'),
              shape: CircleBorder(
                  side: BorderSide(color:Colors.blue,width: 1,style:BorderStyle.solid)
              ),
              ),
            
            Divider(),
    
            FlatButton( //扁平按钮,可以.icon带图标
              child: Text('按钮'),
              onPressed: (){},
              color: Colors.blue,
            ),
            
            Divider(),
    
            OutlineButton( //边框按钮背景无色,可以.icon带图标
            child: Text('扁平'),
            onPressed: (){},
            borderSide:BorderSide(color: Colors.red,width: 1,style:BorderStyle.solid) ,
    
            ),
    
            Divider(),
    
            IconButton(
              icon: Icon(Icons.hotel),
              onPressed: (){},
              iconSize: 20,
            ),
    
            Divider(),
    
            ButtonBar(
              children: <Widget>[
                RaisedButton.icon(
                onPressed: (){}, 
                icon: Icon(Icons.home), 
                label: Text('带图标'),
                shape: CircleBorder(
                    side: BorderSide(color:Colors.blue,width: 1,style:BorderStyle.solid)
                ),
              ),
    
              FlatButton( //扁平按钮,可以.icon带图标
                child: Text('按钮'),
                onPressed: (){},
                color: Colors.blue,
              ),
              ]),
    
              Divider(),
    
              FloatingActionButton(//浮动按钮,圆形带阴影
                child: Text("浮动"),
                onPressed: (){},
                backgroundColor: Colors.blue,
                
              )
              
    
           ],),
        );
      }
    }
    
    展开全文
  • Flutter按钮组件

    2020-06-13 17:09:53
    import 'package:flutter/material.dart'; class buttonDemo extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('title'), actions:...
  • Flutter按钮总结

    2020-10-16 16:56:37
    1.MateriaButton:Material安卓风格按钮 2.RaisedButton:凸起的按钮 3.FlatButton:扁平的按钮 4.IconButton:图标按钮 5.CupertinoButton:CupertinoIOS风格的按钮 6.OutlineButton:线框按钮 FlatButton( child: ...
  • flutter 按钮单选封装

    2019-05-06 10:47:00
    数字是自己先写死的 List list =[ { "title": "影视特效", "type":0, }, { "title": "室内设计", "type":1 }, { "title": "游戏原画", "type":2 }, { ...
  • Flutter 按钮用法小记

    2020-11-17 15:11:27
    Flutter 按钮 知识是人类进步的阶梯,总结笔记就是… 额,管他的呢,挺好。那今天就聊聊 Flutter 中的按钮组件。 Flutter 中已经定义好了一些默认的按钮组件供我们直接使用,所以先请它们登场 RaisedButton: 凸起的...
  • 106、Flutter 按钮交互

    2019-05-16 16:25:34
    这一小节通过Flutter中的FlatButton按钮进行事件监听, 然后通过该事件进行用户的交互 主要利用FlatButton中的onPressed事件,进行响应处理操作的绑定 import 'package:flutter/material.dart'; void main() { ...
  • 文章目录ButtonFloatingActionButtonRaisedButtonFlatButtonOutlineButtonIconButton带图标的按钮...Flutter 提供了三个基本的按钮控件,即 FloatingActionButton、FlatButton 、RaisedButton、OutlineButton、Ico...
  • 关于Flutter按钮Shape设置及效果

    千次阅读 2018-12-10 09:32:42
    一个老实的程序猿,都是直接进入主题: Button 设置效果 和 一些样式类使用 BorderSide 内得设置 style: BorderStyle.none 设置颜色 是无效得 style: BorderStyle.solid 设置延是是有效得 ShapeBorder类的使用 ...
  • Flutter按钮添加背景图片及文字

    千次阅读 2019-11-19 18:42:26
    Flutter按钮添加背景图片及文字的一种方法,记录下,上代码 Widget picAndTextButton(String imgpath,String text) { return Container( width: 200, height: 60, decoration: BoxDecoration( color: Colors....
  • 普通按钮、颜色按钮、阴影按钮、图标按钮、圆角按钮、圆形按钮 children: <Widget>[ RaisedButton( child: Text('普通按钮'),//文本内容 onPressed: () {//点击事件 print("普通按钮"); }, ), S...
  • 需求:按钮固定底部,键盘弹出,不能覆盖输入框,并且能滚动页面。 解决方法过程: 方案一: resizeToAvoidBottomPadding: false, //输入框抵住键盘 结果:点击最底部输入框被键盘覆盖。 方案二:使用界面变化...
  • Flutter Button 按钮

    千次阅读 2019-06-11 17:49:59
    Flutter 里有很多的 Button,包括了:MaterialButton、RaisedButton、FloatingActionButton、FlatButton、IconButton、ButtonBar、DropdownButton 等。 一般常用的 Button 是 MaterialButton、IconButton、Flo.....

空空如也

1 2 3 4 5 ... 20
收藏数 834
精华内容 333
关键字:

flutter 按钮