将背景LinearGradient添加到脚手架后,所有波纹效果在颤振中均不起作用

时间:2018-07-06 09:12:38

标签: flutter

decoration: new BoxDecoration(
              gradient: new LinearGradient(colors: [const Color(0xFF143656),const Color(0xFFB0BEC5)],
                  begin: FractionalOffset.topLeft,
                  end: FractionalOffset.bottomRight,
                  stops: [0.0,1.0],
                  tileMode: TileMode.clamp
              ),
            ),

///以上代码添加了LinearGradient

child: IconButton(
                          padding: EdgeInsets.all(0.0),
                          icon: new Image.asset('images/google_plus.png',height: 45.0,width: 45.0,),

                          onPressed: () {
                            //_nextPage(1);
                          },
                        ),

0 个答案:

没有答案