Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pub/all-65d6ea0dfa
Browse files Browse the repository at this point in the history
  • Loading branch information
twogood committed Apr 22, 2024
2 parents 2bc2f28 + bea94f4 commit 3147f91
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutter": "3.19.6",
"flavors": {}
}
30 changes: 30 additions & 0 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Flutter CI

on:
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action

- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}

- run: flutter pub get

- run: dart format --set-exit-if-changed .

- run: flutter analyze .

# - run: flutter test

# - run: flutter build web --no-pub --no-tree-shake-icons
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

# FVM Version Cache
.fvm/
3 changes: 2 additions & 1 deletion lib/bankid_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ class CompleteView extends StatelessWidget {
title: Text('Name: ${_completionData.user.name}'),
),
ListTile(
title: Text('Personal number: ${_completionData.user.personalNumber}'),
title:
Text('Personal number: ${_completionData.user.personalNumber}'),
),
],
);
Expand Down
3 changes: 2 additions & 1 deletion lib/bankid_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class BankIdService extends StateNotifier<BankIdState> {
_orderRef = response.orderRef;
var url =
'https://app.bankid.com/?autostarttoken=${response.autoStartToken}&redirect=null';
if (!await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication)) {
if (!await launchUrl(Uri.parse(url),
mode: LaunchMode.externalApplication)) {
await _cancel();
state = BankIdState.failed('Could not launch $url');
return;
Expand Down

0 comments on commit 3147f91

Please sign in to comment.