From 7c3f2ba7115f8a28aead9eab5bb4b89ca256fa07 Mon Sep 17 00:00:00 2001 From: Michael Bui <25263378+MaikuB@users.noreply.github.com> Date: Sun, 21 Feb 2021 11:42:44 +1100 Subject: [PATCH] address warnings in example app --- flutter_appauth/example/lib/main.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flutter_appauth/example/lib/main.dart b/flutter_appauth/example/lib/main.dart index 6cad90fb..c80d9801 100644 --- a/flutter_appauth/example/lib/main.dart +++ b/flutter_appauth/example/lib/main.dart @@ -44,7 +44,7 @@ class _MyAppState extends State { ]; final AuthorizationServiceConfiguration _serviceConfiguration = - AuthorizationServiceConfiguration( + const AuthorizationServiceConfiguration( 'https://demo.identityserver.io/connect/authorize', 'https://demo.identityserver.io/connect/token'); @@ -67,22 +67,22 @@ class _MyAppState extends State { visible: _isBusy, child: const LinearProgressIndicator(), ), - RaisedButton( + ElevatedButton( child: const Text('Sign in with no code exchange'), onPressed: _signInWithNoCodeExchange, ), - RaisedButton( + ElevatedButton( child: const Text('Exchange code'), onPressed: _authorizationCode != null ? _exchangeCode : null, ), - RaisedButton( + ElevatedButton( child: const Text('Sign in with auto code exchange'), onPressed: () => _signInWithAutoCodeExchange(), ), if (Platform.isIOS) Padding( padding: const EdgeInsets.all(8.0), - child: RaisedButton( + child: ElevatedButton( child: const Text( 'Sign in with auto code exchange using ephemeral session (iOS only)', textAlign: TextAlign.center, @@ -91,7 +91,7 @@ class _MyAppState extends State { preferEphemeralSession: true), ), ), - RaisedButton( + ElevatedButton( child: const Text('Refresh token'), onPressed: _refreshToken != null ? _refresh : null, ),