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/.
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.
- Open the file
macos/Runner.xcworkspace
with XCode - Select the
Runner
project in theProject
navigator (left sidebar). - Select the
Runner
target in theTargets
list. - Click the
Signing & Capabilities
tab in the project editor. - Locate the
App Sandbox
capability. - Check the
Outgoing Connections (Client)
checkbox to enable outgoing network connections for your app.
- 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/>
If you want to know more about entitlements, check it out the following documentation:
- Flutter Docs: Entitlements and the app sandbox
- Apple Developer Documentation: Entitlements
- Apple Developer Documentation: App Sandbox
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.