diff --git a/example/lib/main.dart b/example/lib/main.dart index 66f9d24f..4a193805 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -85,7 +85,7 @@ class _MyAppState extends State { controller: _controller, padding: const EdgeInsets.all(20), children: [ - RaisedButton( + ElevatedButton( child: Text("Create Source"), onPressed: () { StripePayment.createSourceWithParams(SourceParams( @@ -103,7 +103,7 @@ class _MyAppState extends State { }, ), Divider(), - RaisedButton( + ElevatedButton( child: Text("Create Token with Card Form"), onPressed: () { StripePayment.paymentRequestWithCardForm( @@ -117,7 +117,7 @@ class _MyAppState extends State { }).catchError(setError); }, ), - RaisedButton( + ElevatedButton( child: Text("Create Token with Card"), onPressed: () { StripePayment.createTokenWithCard( @@ -132,7 +132,7 @@ class _MyAppState extends State { }, ), Divider(), - RaisedButton( + ElevatedButton( child: Text("Create Payment Method with Card"), onPressed: () { StripePayment.createPaymentMethod( @@ -148,7 +148,7 @@ class _MyAppState extends State { }).catchError(setError); }, ), - RaisedButton( + ElevatedButton( child: Text("Create Payment Method with existing token"), onPressed: _paymentToken == null ? null @@ -169,7 +169,7 @@ class _MyAppState extends State { }, ), Divider(), - RaisedButton( + ElevatedButton( child: Text("Confirm Payment Intent"), onPressed: _paymentMethod == null || _paymentIntentClientSecret == null @@ -190,7 +190,7 @@ class _MyAppState extends State { }).catchError(setError); }, ), - RaisedButton( + ElevatedButton( child: Text( "Confirm Payment Intent with saving payment method", textAlign: TextAlign.center, @@ -215,7 +215,7 @@ class _MyAppState extends State { }).catchError(setError); }, ), - RaisedButton( + ElevatedButton( child: Text("Authenticate Payment Intent"), onPressed: _paymentIntentClientSecret == null ? null @@ -233,7 +233,7 @@ class _MyAppState extends State { }, ), Divider(), - RaisedButton( + ElevatedButton( child: Text("Native payment"), onPressed: () { if (Platform.isIOS) { @@ -263,7 +263,7 @@ class _MyAppState extends State { }).catchError(setError); }, ), - RaisedButton( + ElevatedButton( child: Text("Complete Native Payment"), onPressed: () { StripePayment.completeNativePayRequest().then((_) {