-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: OIDC4VCI screening developer option shown #1986
- Loading branch information
Showing
11 changed files
with
343 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'view/json_viewer_page.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,59 @@ | ||
import 'package:altme/app/app.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class JsonViewerPage extends StatelessWidget { | ||
const JsonViewerPage({ | ||
super.key, | ||
required this.title, | ||
required this.data, | ||
}); | ||
|
||
final String title; | ||
final String data; | ||
|
||
static Route<dynamic> route({ | ||
required String title, | ||
required String data, | ||
}) => | ||
MaterialPageRoute<void>( | ||
builder: (_) => JsonViewerPage( | ||
title: title, | ||
data: data, | ||
), | ||
settings: const RouteSettings(name: '/JsonViewerPage'), | ||
); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return JsonViewerView( | ||
title: title, | ||
data: data, | ||
); | ||
} | ||
} | ||
|
||
class JsonViewerView extends StatelessWidget { | ||
const JsonViewerView({ | ||
super.key, | ||
required this.title, | ||
required this.data, | ||
}); | ||
|
||
final String title; | ||
final String data; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return BasePage( | ||
title: title, | ||
titleAlignment: Alignment.topCenter, | ||
scrollView: true, | ||
titleLeading: const BackLeadingButton(), | ||
padding: const EdgeInsets.symmetric(horizontal: 10), | ||
body: Text( | ||
data, | ||
style: Theme.of(context).textTheme.bodyMedium, | ||
), | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export 'qr_code_scan/qr_code_scan.dart'; | ||
export 'qr_display/qr_display.dart'; | ||
export 'widget/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
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,76 @@ | ||
import 'package:altme/app/app.dart'; | ||
import 'package:altme/l10n/l10n.dart'; | ||
import 'package:altme/theme/theme.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class DeveloperModeDialog extends StatelessWidget { | ||
const DeveloperModeDialog({ | ||
super.key, | ||
required this.onDisplay, | ||
required this.onDownload, | ||
required this.onSkip, | ||
}); | ||
|
||
final VoidCallback onDisplay; | ||
final VoidCallback onDownload; | ||
final VoidCallback onSkip; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final color = Theme.of(context).colorScheme.primary; | ||
final background = Theme.of(context).colorScheme.popupBackground; | ||
final textColor = Theme.of(context).colorScheme.dialogText; | ||
|
||
final l10n = context.l10n; | ||
return AlertDialog( | ||
backgroundColor: background, | ||
surfaceTintColor: Colors.transparent, | ||
contentPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 15), | ||
shape: const RoundedRectangleBorder( | ||
borderRadius: BorderRadius.all(Radius.circular(25)), | ||
), | ||
content: Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
Image.asset( | ||
IconStrings.cardReceive, | ||
width: 50, | ||
height: 50, | ||
color: textColor, | ||
), | ||
const SizedBox(height: 15), | ||
MyElevatedButton( | ||
text: l10n.displayConfiguration, | ||
verticalSpacing: 14, | ||
backgroundColor: color, | ||
borderRadius: Sizes.smallRadius, | ||
fontSize: 15, | ||
elevation: 0, | ||
onPressed: onDisplay, | ||
), | ||
const SizedBox(height: Sizes.spaceSmall), | ||
MyElevatedButton( | ||
text: l10n.downloadConfiguration, | ||
verticalSpacing: 14, | ||
backgroundColor: color, | ||
borderRadius: Sizes.smallRadius, | ||
fontSize: 15, | ||
elevation: 0, | ||
onPressed: onDownload, | ||
), | ||
const SizedBox(height: Sizes.spaceSmall), | ||
MyElevatedButton( | ||
text: l10n.skip, | ||
verticalSpacing: 14, | ||
backgroundColor: color, | ||
borderRadius: Sizes.smallRadius, | ||
fontSize: 15, | ||
elevation: 0, | ||
onPressed: onSkip, | ||
), | ||
const SizedBox(height: 15), | ||
], | ||
), | ||
); | ||
} | ||
} |
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 @@ | ||
export 'developer_mode_dialog.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
Oops, something went wrong.