|
|
@ -13,70 +13,133 @@ class _ExampleButtonState extends State<ExampleButton> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return ASScaffold(
|
|
|
|
return ASScaffold(
|
|
|
|
title: 'Button',
|
|
|
|
title: 'ASButton',
|
|
|
|
body: ListView(
|
|
|
|
body: ListView(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text('danger'),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
ASButton.danger(
|
|
|
|
ASButton.danger(
|
|
|
|
title: '危险按钮',
|
|
|
|
title: '删除订单',
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text('info'),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
ASButton.info(
|
|
|
|
ASButton.info(
|
|
|
|
title: '提示按钮',
|
|
|
|
title: '删除订单',
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text('warn'),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
ASButton.warn(
|
|
|
|
ASButton.warn(
|
|
|
|
title: '警告按钮',
|
|
|
|
title: '删除订单',
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text('operation'),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
ASButton.operation(
|
|
|
|
ASButton.operation(
|
|
|
|
title: '操作按钮',
|
|
|
|
title: '删除订单',
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text('order'),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
ASButton.order(
|
|
|
|
|
|
|
|
title: '立即下单',
|
|
|
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
SizedBox(height: 12.w),
|
|
|
|
SizedBox(height: 12.w),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
|
|
|
'ASLongButton',
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 20.sp, fontWeight: FontWeight.bold),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 12.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text('solid'),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
ASLongButton.solid(
|
|
|
|
ASLongButton.solid(
|
|
|
|
title: '确认',
|
|
|
|
title: '确认',
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text('hollow'),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
ASLongButton.hollow(
|
|
|
|
ASLongButton.hollow(
|
|
|
|
title: '确认',
|
|
|
|
title: '确认',
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 100.w),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 100.w),
|
|
|
|
child: ASLongButton.solid(title: 'null', onPressed: () {}),
|
|
|
|
child: ASLongButton.solid(title: 'adaptable', onPressed: () {}),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 12.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
ASGradientButton.pay(
|
|
|
|
Spacer(),
|
|
|
|
title: '支付',
|
|
|
|
Text(
|
|
|
|
onPressed: () {},
|
|
|
|
'ASGradientButton',
|
|
|
|
),
|
|
|
|
style: TextStyle(fontSize: 20.sp, fontWeight: FontWeight.bold),
|
|
|
|
ASButton.danger(
|
|
|
|
|
|
|
|
title: '删除',
|
|
|
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
ASGradientButton.operation(
|
|
|
|
|
|
|
|
title: 'null',
|
|
|
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
ASLongButton.hollow(
|
|
|
|
SizedBox(
|
|
|
|
title: '确认',
|
|
|
|
height: 12.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Text('pay'),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
ASGradientButton.pay(
|
|
|
|
|
|
|
|
title: '支付',
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
],
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 100.w),
|
|
|
|
|
|
|
|
child: ASLongButton.solid(title: 'null', onPressed: () {}),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
ASButton.order(
|
|
|
|
Text('opration'),
|
|
|
|
title: '立即下单',
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
ASGradientButton.operation(
|
|
|
|
|
|
|
|
title: '自动拆票',
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
)
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|