关于作者
这个包是由 SALAH EDDINE SALHI 创建的
Gradient Slide To Act
滑动激活按钮,带有简单的动画和渐变背景
用法
GradientSlideToAct(
width: 400,
textStyle: TextStyle(color: Colors.white,fontSize: 15),
backgroundColor: Color(0Xff172663),
onSubmit: (){
debugPrint("Submitted!");
},
gradient: const LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xff0da6c2),
Color(0xff0E39C6),
]
),
)
GradientSlideToAct(
width: 400,
dragableIcon: Icons.arrow_forward,
textStyle: TextStyle(color: Colors.white,fontSize: 15),
backgroundColor: Colors.purple,
onSubmit: (){},
gradient: LinearGradient(
begin: Alignment.centerLeft,
colors: [
Colors.red,
Colors.purple
]
),
)
GradientSlideToAct(
width: 400,
dragableIconBackgroundColor: Colors.greenAccent,
textStyle: TextStyle(color: Colors.white,fontSize: 15),
backgroundColor: ColorManager.primary_dark_Color2,
onSubmit: (){},
gradient: const LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0Xff11998E ),
Color(0Xff38EF7D),
]
),
)
附加信息
你可以在 pub.dev 上查看更多示例





