Skip to content

Commit

Permalink
address warnings in example app
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikuB committed Feb 21, 2021
1 parent 6a63ece commit 7c3f2ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flutter_appauth/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class _MyAppState extends State<MyApp> {
];

final AuthorizationServiceConfiguration _serviceConfiguration =
AuthorizationServiceConfiguration(
const AuthorizationServiceConfiguration(
'https://demo.identityserver.io/connect/authorize',
'https://demo.identityserver.io/connect/token');

Expand All @@ -67,22 +67,22 @@ class _MyAppState extends State<MyApp> {
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,
Expand All @@ -91,7 +91,7 @@ class _MyAppState extends State<MyApp> {
preferEphemeralSession: true),
),
),
RaisedButton(
ElevatedButton(
child: const Text('Refresh token'),
onPressed: _refreshToken != null ? _refresh : null,
),
Expand Down

0 comments on commit 7c3f2ba

Please sign in to comment.