Resolve #382 VIew camera in chrome custom tab

This commit is contained in:
estevez-dev
2019-06-21 21:01:53 +03:00
parent caabf25260
commit 3c0ca5d16d
5 changed files with 31 additions and 24 deletions

View File

@ -98,15 +98,15 @@ class HAUtils {
}
}
static void launchURLInCustomTab(BuildContext context, String url) async {
static void launchURLInCustomTab({BuildContext context, String url, bool enableDefaultShare: true, bool showPageTitle: true}) async {
try {
await launch(
"$url",
option: new CustomTabsOption(
toolbarColor: Theme.of(context).primaryColor,
enableDefaultShare: true,
enableDefaultShare: enableDefaultShare,
enableUrlBarHiding: true,
showPageTitle: true,
showPageTitle: showPageTitle,
animation: new CustomTabsAnimation.slideIn()
// or user defined animation.
/*animation: new CustomTabsAnimation(