victorbonnet / flutter_web_browser

Plugin for flutter to open web page with Chrome Custom Tabs and SFSafariViewController
MIT License
62 stars 39 forks source link

handle iOS 10 properties to customize colors for bars and action elements #19

Closed olivierbrand closed 3 years ago

victorbonnet commented 3 years ago

Nice PR. Thanks @olivierbrand

victorbonnet commented 3 years ago

@olivierbrand I got some conflicts from another PR for customizing iOS.

To customize it we can use this now:

FlutterWebBrowser.openWebPage(
  url: "https://flutter.io/",
  androidToolbarColor: Colors.deepPurple,
  safariVCOptions: SafariViewControllerOptions(
    barCollapsingEnabled: true,
    preferredBarTintColor: Colors.green,
    preferredControlTintColor: Colors.amber,
    dismissButtonStyle: SafariViewControllerDismissButtonStyle.close,
    modalPresentationCapturesStatusBarAppearance: true,
  ),
);

Hope this is fine for you.

olivierbrand commented 3 years ago

Looks great!

From: Victor Bonnet notifications@github.com Reply-To: victorbonnet/flutter_web_browser reply@reply.github.com Date: Tuesday, September 1, 2020 at 11:02 AM To: victorbonnet/flutter_web_browser flutter_web_browser@noreply.github.com Cc: Olivier Brand obrand@ingenio.com, Mention mention@noreply.github.com Subject: Re: [victorbonnet/flutter_web_browser] handle iOS 10 properties to customize colors for bars and action elements (#19)

@olivierbrandhttps://github.com/olivierbrand I got some conflicts from another PRhttps://github.com/victorbonnet/flutter_web_browser/pull/22 for customizing iOS.

To customize it we can use this now:

FlutterWebBrowser.openWebPage(

url: "https://flutter.io/",

androidToolbarColor: Colors.deepPurple,

safariVCOptions: SafariViewControllerOptions(

barCollapsingEnabled: true,

preferredBarTintColor: Colors.green,

preferredControlTintColor: Colors.amber,

dismissButtonStyle: SafariViewControllerDismissButtonStyle.close,

modalPresentationCapturesStatusBarAppearance: true,

),

);

Hope this is fine for you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/victorbonnet/flutter_web_browser/pull/19#issuecomment-685002581, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJBBYBPWKXIS2K36HBA5ER3SDUSLBANCNFSM4PC5O5AA.