-
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.
Merge pull request #2686 from TalaoDAO/sd_issue#2681
fix: Solve selective disclosure error during presentation #2681
- Loading branch information
Showing
9 changed files
with
125 additions
and
55 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
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
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
34 changes: 34 additions & 0 deletions
34
lib/selective_disclosure/widget/inject_selective_disclosure_state.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,34 @@ | ||
import 'package:altme/dashboard/dashboard.dart'; | ||
import 'package:altme/selective_disclosure/widget/display_selective_disclosure.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_bloc/flutter_bloc.dart'; | ||
|
||
class ConsumeSelectiveDisclosureCubit extends StatelessWidget { | ||
const ConsumeSelectiveDisclosureCubit({ | ||
super.key, | ||
required this.credentialModel, | ||
required this.showVertically, | ||
this.onPressed, | ||
this.parentKeyId, | ||
}); | ||
|
||
final CredentialModel credentialModel; | ||
final bool showVertically; | ||
final void Function(String?, String, String?)? onPressed; | ||
|
||
final String? parentKeyId; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return BlocBuilder<SelectiveDisclosureCubit, SelectiveDisclosureState>( | ||
builder: (context, state) { | ||
return DisplaySelectiveDisclosure( | ||
credentialModel: credentialModel, | ||
selectiveDisclosureState: state, | ||
onPressed: onPressed, | ||
showVertically: true, | ||
); | ||
}, | ||
); | ||
} | ||
} |
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