This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Purpose Adds some initial tests. ## Changes Small refactorings to allow testing: - Create UrlLauncher service. - Added some keys in terms and conditions screen. Added Tests with Mocktail: - 2 Widget tests for terms and conditions screen. - 2 Unit tests for wallet proxy service.
- Loading branch information
1 parent
09fa425
commit 48d0c29
Showing
10 changed files
with
299 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
class UrlLauncher { | ||
static final UrlLauncher _singleton = UrlLauncher._internal(); | ||
|
||
factory UrlLauncher() { | ||
return _singleton; | ||
} | ||
|
||
UrlLauncher._internal(); | ||
|
||
Future<bool> launch(Uri uri) { | ||
return launchUrl(uri); | ||
} | ||
|
||
Future<bool> canLaunch(Uri uri) { | ||
return canLaunchUrl(uri); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
/// Wrap MaterialApp and Scaffold around the given widget. | ||
Widget wrapMaterial({required Widget? child}) => MaterialApp(home: Scaffold(body: child)); |
Oops, something went wrong.