-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add code for dpop support #3034
- Loading branch information
Showing
6 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
lib/dashboard/drawer/ssi/oidc4vc_settngs/widget/dpop_support_widget.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import 'package:altme/dashboard/dashboard.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_bloc/flutter_bloc.dart'; | ||
|
||
class DPopSupoprtWidget extends StatelessWidget { | ||
const DPopSupoprtWidget({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return BlocBuilder<ProfileCubit, ProfileState>( | ||
builder: (context, state) { | ||
return OptionContainer( | ||
title: 'Demonstrating Proof of Possession (DPoP)', | ||
subtitle: 'Enable to protect code and access token.', | ||
body: Switch( | ||
onChanged: (value) async { | ||
await context.read<ProfileCubit>().updateProfileSetting( | ||
dpopSupport: value, | ||
); | ||
}, | ||
value: state.model.profileSetting.selfSovereignIdentityOptions | ||
.customOidc4vcProfile.dpopSupport, | ||
activeColor: Theme.of(context).colorScheme.primary, | ||
), | ||
); | ||
}, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.