diff --git a/example/lib/main.dart b/example/lib/main.dart index e6cab32..2b73e2f 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -44,7 +44,7 @@ class _MyHomePageState extends State { ), body: ListView( children: [ - ASButton.gray('删除订单', (){}), + ASButton.delete('删除订单', (){}), SizedBox(height: 12.w), TextButton( onPressed: () { diff --git a/lib/buttons/as_button.dart b/lib/buttons/as_button.dart index b6d2e78..b0e3a87 100644 --- a/lib/buttons/as_button.dart +++ b/lib/buttons/as_button.dart @@ -44,21 +44,21 @@ class ASButton extends StatefulWidget { @required this.onpressed, }) : super(key: key); - ASButton.red(this.title, this.onpressed, + ASButton.warn(this.title, this.onpressed, {Key key, this.textStyle, this.padding, this.radius, this.color}) : outline = true, outlineColor = Color(0xFFE50112), textColor = Color(0xFFE50112), super(key: key); - ASButton.gray(this.title, this.onpressed, + ASButton.info(this.title, this.onpressed, {Key key, this.color, this.radius, this.textStyle, this.padding}) : outline = true, outlineColor = Color(0x73000000), textColor = Color(0xD9000000), super(key: key); - ASButton.yellow(this.title, this.onpressed, + ASButton.delete(this.title, this.onpressed, {Key key, this.radius, this.outlineColor, this.textStyle, this.padding}) : color = Color(0xFFFFB600), textColor = Color(0xD9FFFFFF),