Flutter RaisedButton 带渐变圆角 Gradient and Radius

效果图


image.png
                  RaisedButton(
                    onPressed: () {},
                    textColor: Colors.white,
                    clipBehavior: Clip.hardEdge,
                    shape: RoundedRectangleBorder(
                        borderRadius: BorderRadius.all(Radius.circular(22.0))),
                    padding: const EdgeInsets.all(0.0),
                    child: Container(
                      width: 260,
                      height: 44,
                      decoration: const BoxDecoration(
                        gradient: LinearGradient(
                          colors: [
                            Color(0xff25D1D1),
                            Color(0xff3BE6AD),
                            Color(0xff20DDAA)
                          ],
                        ),
                      ),
                      padding: const EdgeInsets.all(10.0),
                      child: Container(
                          alignment: Alignment.center,
                          child: Text('立即申请')),
                    ),
                  ),

你可能感兴趣的:(Flutter RaisedButton 带渐变圆角 Gradient and Radius)