-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
132d930
commit 040f6c2
Showing
6 changed files
with
812 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import 'package:easy_web_view/easy_web_view.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class CertificateValidation extends StatefulWidget { | ||
const CertificateValidation({super.key}); | ||
|
||
@override | ||
State<CertificateValidation> createState() => _CertificateValidationState(); | ||
} | ||
|
||
class _CertificateValidationState extends State<CertificateValidation> { | ||
late final String certValidation; | ||
final ValueKey key = const ValueKey('key_0'); | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
|
||
certValidation = '${Uri.base.origin}/static/cert_validation.html'; | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Validação de Certificado'), | ||
leading: IconButton( | ||
onPressed: () { | ||
Navigator.pushNamed(context, 'home'); | ||
}, | ||
icon: const Icon(Icons.home), | ||
), | ||
), | ||
body: EasyWebView( | ||
src: certValidation, | ||
key: key, | ||
width: MediaQuery.of(context).size.width, | ||
height: MediaQuery.of(context).size.height, | ||
), | ||
); | ||
} | ||
} |
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.