You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/desktop_photo_search/fluent_ui
Brett Morgan c0ca55e872
Fix build breakage (#1456)
2 years ago
..
lib Fix build breakage (#1456) 2 years ago
linux `desktop_photo_search` Rebuild script (#1356) 2 years ago
macos Update for Material changes & run rebuild scripts (#1412) 2 years ago
test Deps update, utilize `super.key` (#1265) 2 years ago
tool Migrate `desktop_photo_search` to top level (#1002) 2 years ago
windows Consolidated Flutter 3.3 update (#1401) 2 years ago
.gitignore Migrate `desktop_photo_search` to top level (#1002) 2 years ago
.metadata Update for Material changes & run rebuild scripts (#1412) 2 years ago
README.md Migrate `desktop_photo_search` to top level (#1002) 2 years ago
analysis_options.yaml Pin `window_size` and `menubar` (#1398) 2 years ago
pubspec.yaml Bump fluent_ui from 3.12.0 to 4.0.0 in /desktop_photo_search/fluent_ui (#1440) 2 years ago

README.md

Photo Search app

This desktop application enables you to search Unsplash for photographs that interest you. To use it, you need to add an Access Key from Unsplash API to lib/unsplash_access_key.dart.

This sample works on Windows, macOS and Linux.

A quick tour of the code

This Flutter project builds a desktop application. It utilises the following desktop specific plugins:

  • fluent_ui for the Fluent UI widget set
  • file_chooser to enable the application user to select where to save a photo from the Unsplash API.
  • menubar for exposing Image Search functionality through the menu bar.
  • url_launcher to open external links.

The Unsplash API client entry point is in the Unsplash class, and is built atop http, built_value and built_collection for JSON Rest API access.

Deploying to the Microsoft Store

This sample uses Yehuda Kremer's MSIX pub package to bundle up the Windows release build for distribution to the Microsoft Store. Microsoft maintains a plethora of documentation on deploying to the Microsoft Store.

See the msix_config stanza in this sample's pubspec.yaml for an example configuration. Make sure the display_name, publisher_display_name, publisher and identity_name attributes match the settings in your Microsoft Partner Center application submission.

macOS Network and File entitlements

To access the network, macOS requires applications enable the com.apple.security.network.client entitlement. For this sample, this entitlement is required to access the Unsplash API.

Likewise, to save a Photo to the local file system using the file_chooser plugin requires the com.apple.security.files.user-selected.read-write entitlement.

Please see macOS Signing and Security for more detail.