Skip to content

vital-edu/touch_bar_flutter_plugin

Folders and files

NameName
Last commit message
Last commit date
Apr 29, 2023
Apr 29, 2023
Apr 29, 2023
Apr 29, 2023
Apr 15, 2023
Apr 9, 2023
Apr 16, 2023
Mar 25, 2021
Apr 29, 2023
Apr 15, 2023
Apr 15, 2023

Repository files navigation

TouchBar Flutter Plugin

This repo contains the code to the TouchBar plugin.

This plugin has the goal of provide full support to the MacBook Touch Bar in Flutter applications.

For more information about plugins, and how to use them, see https://flutter.dev/platform-plugins/.

Setup

Loading images from network

By default, MacOS applications cannot connect to the internet. Thus if you want to load network images, you have to add the Network Outgoing Connection (Client) entitlement to your application using XCode or edit the entitlement files with your preferred editor.

Using XCode

  1. Open the file macos/Runner.xcworkspace with XCode
  2. Select the Runner project in the Project navigator (left sidebar).
  3. Select the Runner target in the Targets list.
  4. Click the Signing & Capabilities tab in the project editor.
  5. Locate the App Sandbox capability.
  6. Check the Outgoing Connections (Client) checkbox to enable outgoing network connections for your app.

Editing entitlements files

  1. Add the lines below to all the files matching the pattern macos/Runner/*.entitlements. Example:
    • macos/Runner/DebugProfile.entitlements
    • macos/Runner/Release.entitlements
<key>com.apple.security.network.client</key>
<true/>

Additional resources

If you want to know more about entitlements, check it out the following documentation:

Contributing

If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide and open a pull request.