Skip to content

Commit f466bdd

Browse files
New services: Accelerometer, Barometer, Battery, Connectivity, Gyroscope, Magnetometer, Share, ScreenBrightness, UserAccelerometer, Wakelock (#5846)
* Add sensor services and events to Flet Introduced support for device sensors including accelerometer, user accelerometer, gyroscope, magnetometer, and barometer. Added corresponding Dart services, Python control classes, event types, and documentation. Updated mkdocs navigation and provided example usage for each sensor. * Refactor sensors service imports and formatting Added import for numbers utility in sensors.dart and improved code formatting for error handling and debug print statements. * Update PyPI cleanup script and add module support Changed the version exclusion regex and added cleanup commands for multiple flet modules to the clean-pypi.sh script to ensure all related packages are properly cleaned from PyPI. * Update sensors_plus to version 7.0.0 Bump sensors_plus dependency from 6.1.1 to 7.0.0 in pubspec.yaml and update pubspec.lock accordingly for compatibility with the latest package features and fixes. * Add services property to BasePage and View Introduces a services property to BasePage and View, allowing management of Service controls via property accessors. The services attribute is now stored in View and proxied through BasePage, improving encapsulation and flexibility. * Refactor sensor examples and update service docs Sensor example scripts now use `page.services` and `page.controls` instead of session store and `page.add`. Documentation for sensor services was updated for clarity, platform support, and iOS requirements, including details on `NSMotionUsageDescription` for barometer usage. * Fix and clarify docstrings and references in controls Corrected docstring references and improved clarity in several control modules. Updated links to use correct attribute names and fixed formatting in flet_map/types.py, cupertino_switch.py, snack_bar.py, and types.py. * Add ScreenBrightness service and Python bindings Introduces ScreenBrightnessService in Dart and ScreenBrightness control in Python, enabling control and observation of system and application screen brightness. Updates plugin registrants for macOS and Windows, adds documentation and example usage, and includes the screen_brightness dependency in pubspec.yaml. * Update screen brightness docs and clarify platform support Fixed example path in ScreenBrightness docs, added documentation for ScreenBrightnessChangeEvent, and updated mkdocs navigation. Clarified that accelerometer, gyroscope, and user accelerometer services are only supported on Android and iOS (not web). Expanded ScreenBrightness docstring with platform notes and Android permission instructions. * Add Wakelock service to Flutter and Python SDKs Introduced a new Wakelock service to prevent device sleep in both the Flutter and Python Flet SDKs. Added the wakelock_plus dependency to the Flutter project, implemented the WakelockService in Dart, and exposed the Wakelock control in Python with documentation and an example. Updated documentation and navigation to include the new control. * Update package_info_plus and wakelock_plus dependencies Bump package_info_plus to version 9.0.0 in client with an override, and update wakelock_plus to 1.4.0 in both client and flet package. This ensures compatibility with the latest versions and resolves potential dependency conflicts. * Update wakelock_plus and add new dependencies Downgraded wakelock_plus to v1.2.8 in packages/flet and added wakelock_plus v1.4.0 and package_info_plus v9.0.0 to client dependencies. This ensures compatibility and provides additional functionality in the client package. * Add Battery service support to Flet Introduces Battery service integration in Flet, including Dart and Python implementations, documentation, and example usage. Updates plugin registrants for macOS and Windows, adds battery_plus dependency, and exposes Battery-related types and events in the Python SDK. * Add connectivity service and documentation Introduced Connectivity service in both Dart and Python SDKs, enabling connectivity status checks and change notifications. Registered connectivity_plus plugin for macOS and Windows clients, updated dependencies, and added example usage and documentation for the new service. * Add and improve docstrings for service controls Added and enhanced docstrings for classes and methods in battery, browser_context_menu, clipboard, connectivity, service, shared_preferences, storage_paths, and url_launcher modules to improve code documentation and clarity for developers. * Add Share service and Python API for sharing Introduces ShareService in Dart and integrates share_plus for sharing text, links, and files. Adds Python API (Share, ShareFile, ShareResult, etc.), documentation, and example usage. Updates plugin registration and dependencies for macOS and Windows. * Rename CupertinoActivityType to ShareCupertinoActivityType Replaces the CupertinoActivityType enum with ShareCupertinoActivityType throughout the codebase for clarity and consistency. Updates documentation, mkdocs navigation, and references in __init__.py and share.py. Adds docstrings and improves type annotations for share-related classes and methods. * Refactor docs: move service-related files and update navigation Service-related documentation files were moved from 'controls' and 'types' to a new 'services' directory. The mkdocs navigation was updated to reflect this change, grouping all service docs under a new 'Services' section. Macros and overview rendering were refactored to support both controls and services navigation. Minor cleanup in page.dart and macro Python files. * Add API Reference and Types docs, update nav structure Introduces new API Reference and Types index documentation pages. Updates mkdocs.yml to include these sections in the navigation, providing better structure and discoverability for API and type documentation. Minor wording improvements in the cookbook index. * Add cookbook overview macro and generalize nav rendering Introduced a new `cookbook_overview` macro for generating a dynamic overview list in the cookbook docs. Refactored and generalized the navigation rendering logic in `controls_overview.py` to support arbitrary nav paths, base directories, and skip paths, enabling reuse for different documentation sections. Updated the cookbook index to use the new macro and improved the API reference and cookbook index content. * Move examples from controls to services directory Renamed Python example files and related media from sdk/python/examples/controls to sdk/python/examples/services for consistency. Updated references in documentation and README files to point to the new services paths. Adjusted code comments and doc macros to reflect the new structure. * Add basic examples and update docs for services Added basic usage examples for BrowserContextMenu, Clipboard, SharedPreferences, and StoragePaths services in the examples directory. Updated corresponding documentation files to include example code and improved structure for better clarity. * Enhance UrlLauncher with launch modes and configuration Added support for multiple launch modes, in-app web view and browser view configurations, and popup window opening in UrlLauncher for both Dart and Python SDKs. Updated documentation and examples to reflect new features and usage. Exposed BrowserConfiguration, LaunchMode, and WebViewConfiguration in Python package exports and docs. * Refactor service registry usage in Page control Consolidated service registries in the Page control by removing separate _user_services and _page_services in favor of a single _services property. Updated related Dart and Python code, including tests and service registration logic, to reflect this change. Deprecated direct service properties on Page in favor of using service classes directly. * Update commented key from _user_services to _services Changed a commented dictionary key in test_object_diff_in_place.py from '_user_services' to '_services' for consistency with the underlying code or data structure. * Update Flutter dependencies to latest versions Upgraded battery_plus to 7.0.0, connectivity_plus to 7.0.0, device_info_plus to 12.3.0, and screen_brightness to 2.1.7 in packages/flet/pubspec.yaml. This ensures compatibility with the latest features and bug fixes from these packages. * Add file sharing from path example Introduces a new function to share files from a file path, including UI updates to provide separate buttons for sharing files from bytes and from paths. File sharing from paths is disabled on the web platform. * Set pixel_ratio in outlined button screenshot tests Updated screenshot assertions in the handling_clicks test to specify the pixel_ratio parameter, ensuring screenshots are taken with the correct scaling. * Remove duplicate and redundant code in Flet package Eliminated a duplicate line in the ShareFile documentation, removed a repeated entry for 'BrowserConfiguration' in __all__, and simplified the ServiceRegistry default_factory in Page control. These changes improve code clarity and maintainability. * Refactor sensor services and event models Split sensor services into individual Dart files and refactor base class for sensor streams. In Python, move sensor event models into their respective service modules, update event timestamp types to datetime, and remove the shared sensor_events.py file. Update imports and public API accordingly for improved modularity and clarity. * Refactor sensor example apps to use page.add and append Updated sensor service example scripts to use page.add for UI controls and page.services.append for service registration, replacing previous usage of page.controls and assignment to page.services. Also removed unnecessary variable declarations and logging setup for improved clarity and consistency. * Refactor connectivity API and add platform checks Renamed connectivity methods and event handlers for consistency (e.g., 'check_connectivity' to 'get_connectivity', 'on_connectivity_change' to 'on_change'). Updated enum name from ConnectivityResult to ConnectivityType. Added platform support checks to sensor and service classes, raising FletUnsupportedPlatformException on unsupported platforms. Improved documentation to clarify supported platforms for each service. * Replace ConnectivityResult with ConnectivityType in docs Removed the documentation for ConnectivityResult and added documentation for ConnectivityType. Updated mkdocs.yml navigation to reference ConnectivityType instead of ConnectivityResult.
1 parent 2977e1a commit f466bdd

File tree

135 files changed

+3595
-301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+3595
-301
lines changed

.github/scripts/clean-pypi.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
# set PYPI_CLEANUP_PASSWORD with pypi.org password
22

3-
VER="0\.70\.0\.dev(?!6176)"
3+
VER="0\.70\.0\.dev(?!6907)"
44
uv tool install pypi-cleanup
55
uvx pypi-cleanup -u flet -p flet -y -r $VER --do-it
66
uvx pypi-cleanup -u flet -p flet-cli -y -r $VER --do-it
77
uvx pypi-cleanup -u flet -p flet-desktop -y -r $VER --do-it
88
uvx pypi-cleanup -u flet -p flet-desktop-light -y -r $VER --do-it
99
uvx pypi-cleanup -u flet -p flet-web -y -r $VER --do-it
10+
11+
# modules
12+
uvx pypi-cleanup -u flet -p flet-ads -y -r $VER --do-it
13+
uvx pypi-cleanup -u flet -p flet-audio -y -r $VER --do-it
14+
uvx pypi-cleanup -u flet -p flet-audio-recorder -y -r $VER --do-it
15+
uvx pypi-cleanup -u flet -p flet-charts -y -r $VER --do-it
16+
uvx pypi-cleanup -u flet -p flet-datatable2 -y -r $VER --do-it
17+
uvx pypi-cleanup -u flet -p flet-flashlight -y -r $VER --do-it
18+
uvx pypi-cleanup -u flet -p flet-geolocator -y -r $VER --do-it
19+
uvx pypi-cleanup -u flet -p flet-lottie -y -r $VER --do-it
20+
uvx pypi-cleanup -u flet -p flet-map -y -r $VER --do-it
21+
uvx pypi-cleanup -u flet -p flet-permission-handler -y -r $VER --do-it
22+
uvx pypi-cleanup -u flet -p flet-rive -y -r $VER --do-it
23+
uvx pypi-cleanup -u flet -p flet-video -y -r $VER --do-it
24+
uvx pypi-cleanup -u flet -p flet-webview -y -r $VER --do-it

client/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import FlutterMacOS
66
import Foundation
77

88
import audioplayers_darwin
9+
import battery_plus
10+
import connectivity_plus
911
import device_info_plus
1012
import file_picker
1113
import geolocator_apple
@@ -15,7 +17,9 @@ import package_info_plus
1517
import path_provider_foundation
1618
import record_macos
1719
import rive_common
20+
import screen_brightness_macos
1821
import screen_retriever_macos
22+
import share_plus
1923
import shared_preferences_foundation
2024
import url_launcher_macos
2125
import volume_controller
@@ -26,6 +30,8 @@ import window_to_front
2630

2731
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
2832
AudioplayersDarwinPlugin.register(with: registry.registrar(forPlugin: "AudioplayersDarwinPlugin"))
33+
BatteryPlusMacosPlugin.register(with: registry.registrar(forPlugin: "BatteryPlusMacosPlugin"))
34+
ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin"))
2935
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
3036
FilePickerPlugin.register(with: registry.registrar(forPlugin: "FilePickerPlugin"))
3137
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
@@ -35,7 +41,9 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
3541
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
3642
RecordMacOsPlugin.register(with: registry.registrar(forPlugin: "RecordMacOsPlugin"))
3743
RivePlugin.register(with: registry.registrar(forPlugin: "RivePlugin"))
44+
ScreenBrightnessMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenBrightnessMacosPlugin"))
3845
ScreenRetrieverMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverMacosPlugin"))
46+
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
3947
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
4048
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
4149
VolumeControllerPlugin.register(with: registry.registrar(forPlugin: "VolumeControllerPlugin"))

client/pubspec.lock

Lines changed: 120 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ packages:
8181
url: "https://pub.dev"
8282
source: hosted
8383
version: "4.2.1"
84+
battery_plus:
85+
dependency: transitive
86+
description:
87+
name: battery_plus
88+
sha256: ad16fcb55b7384be6b4bbc763d5e2031ac7ea62b2d9b6b661490c7b9741155bf
89+
url: "https://pub.dev"
90+
source: hosted
91+
version: "7.0.0"
92+
battery_plus_platform_interface:
93+
dependency: transitive
94+
description:
95+
name: battery_plus_platform_interface
96+
sha256: e8342c0f32de4b1dfd0223114b6785e48e579bfc398da9471c9179b907fa4910
97+
url: "https://pub.dev"
98+
source: hosted
99+
version: "2.0.1"
84100
boolean_selector:
85101
dependency: transitive
86102
description:
@@ -129,6 +145,22 @@ packages:
129145
url: "https://pub.dev"
130146
source: hosted
131147
version: "1.19.1"
148+
connectivity_plus:
149+
dependency: transitive
150+
description:
151+
name: connectivity_plus
152+
sha256: "33bae12a398f841c6cda09d1064212957265869104c478e5ad51e2fb26c3973c"
153+
url: "https://pub.dev"
154+
source: hosted
155+
version: "7.0.0"
156+
connectivity_plus_platform_interface:
157+
dependency: transitive
158+
description:
159+
name: connectivity_plus_platform_interface
160+
sha256: "42657c1715d48b167930d5f34d00222ac100475f73d10162ddf43e714932f204"
161+
url: "https://pub.dev"
162+
source: hosted
163+
version: "2.0.1"
132164
cross_file:
133165
dependency: transitive
134166
description:
@@ -766,6 +798,14 @@ packages:
766798
url: "https://pub.dev"
767799
source: hosted
768800
version: "2.0.0"
801+
mime:
802+
dependency: transitive
803+
description:
804+
name: mime
805+
sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
806+
url: "https://pub.dev"
807+
source: hosted
808+
version: "2.0.0"
769809
msgpack_dart:
770810
dependency: transitive
771811
description:
@@ -782,14 +822,22 @@ packages:
782822
url: "https://pub.dev"
783823
source: hosted
784824
version: "1.0.0"
785-
package_info_plus:
825+
nm:
786826
dependency: transitive
827+
description:
828+
name: nm
829+
sha256: "2c9aae4127bdc8993206464fcc063611e0e36e72018696cd9631023a31b24254"
830+
url: "https://pub.dev"
831+
source: hosted
832+
version: "0.5.0"
833+
package_info_plus:
834+
dependency: "direct main"
787835
description:
788836
name: package_info_plus
789-
sha256: "16eee997588c60225bda0488b6dcfac69280a6b7a3cf02c741895dd370a02968"
837+
sha256: f69da0d3189a4b4ceaeb1a3defb0f329b3b352517f52bed4290f83d4f06bc08d
790838
url: "https://pub.dev"
791839
source: hosted
792-
version: "8.3.1"
840+
version: "9.0.0"
793841
package_info_plus_platform_interface:
794842
dependency: transitive
795843
description:
@@ -1054,6 +1102,14 @@ packages:
10541102
url: "https://pub.dev"
10551103
source: hosted
10561104
version: "2.0.1"
1105+
screen_brightness:
1106+
dependency: transitive
1107+
description:
1108+
name: screen_brightness
1109+
sha256: "5f70754028f169f059fdc61112a19dcbee152f8b293c42c848317854d650cba3"
1110+
url: "https://pub.dev"
1111+
source: hosted
1112+
version: "2.1.7"
10571113
screen_brightness_android:
10581114
dependency: transitive
10591115
description:
@@ -1062,6 +1118,30 @@ packages:
10621118
url: "https://pub.dev"
10631119
source: hosted
10641120
version: "2.1.3"
1121+
screen_brightness_ios:
1122+
dependency: transitive
1123+
description:
1124+
name: screen_brightness_ios
1125+
sha256: "2493953340ecfe8f4f13f61db50ce72533a55b0bbd58ba1402893feecf3727f5"
1126+
url: "https://pub.dev"
1127+
source: hosted
1128+
version: "2.1.2"
1129+
screen_brightness_macos:
1130+
dependency: transitive
1131+
description:
1132+
name: screen_brightness_macos
1133+
sha256: "4edf330ad21078686d8bfaf89413325fbaf571dcebe1e89254d675a3f288b5b9"
1134+
url: "https://pub.dev"
1135+
source: hosted
1136+
version: "2.1.1"
1137+
screen_brightness_ohos:
1138+
dependency: transitive
1139+
description:
1140+
name: screen_brightness_ohos
1141+
sha256: a93a263dcd39b5c56e589eb495bcd001ce65cdd96ff12ab1350683559d5c5bb7
1142+
url: "https://pub.dev"
1143+
source: hosted
1144+
version: "2.1.2"
10651145
screen_brightness_platform_interface:
10661146
dependency: transitive
10671147
description:
@@ -1070,6 +1150,14 @@ packages:
10701150
url: "https://pub.dev"
10711151
source: hosted
10721152
version: "2.1.0"
1153+
screen_brightness_windows:
1154+
dependency: transitive
1155+
description:
1156+
name: screen_brightness_windows
1157+
sha256: d3518bf0f5d7a884cee2c14449ae0b36803802866de09f7ef74077874b6b2448
1158+
url: "https://pub.dev"
1159+
source: hosted
1160+
version: "2.1.0"
10731161
screen_retriever:
10741162
dependency: transitive
10751163
description:
@@ -1122,10 +1210,10 @@ packages:
11221210
dependency: transitive
11231211
description:
11241212
name: sensors_plus
1125-
sha256: "89e2bfc3d883743539ce5774a2b93df61effde40ff958ecad78cd66b1a8b8d52"
1213+
sha256: "56e8cd4260d9ed8e00ecd8da5d9fdc8a1b2ec12345a750dfa51ff83fcf12e3fa"
11261214
url: "https://pub.dev"
11271215
source: hosted
1128-
version: "6.1.2"
1216+
version: "7.0.0"
11291217
sensors_plus_platform_interface:
11301218
dependency: transitive
11311219
description:
@@ -1134,6 +1222,22 @@ packages:
11341222
url: "https://pub.dev"
11351223
source: hosted
11361224
version: "2.0.1"
1225+
share_plus:
1226+
dependency: transitive
1227+
description:
1228+
name: share_plus
1229+
sha256: "14c8860d4de93d3a7e53af51bff479598c4e999605290756bbbe45cf65b37840"
1230+
url: "https://pub.dev"
1231+
source: hosted
1232+
version: "12.0.1"
1233+
share_plus_platform_interface:
1234+
dependency: transitive
1235+
description:
1236+
name: share_plus_platform_interface
1237+
sha256: "88023e53a13429bd65d8e85e11a9b484f49d4c190abbd96c7932b74d6927cc9a"
1238+
url: "https://pub.dev"
1239+
source: hosted
1240+
version: "6.1.0"
11371241
shared_preferences:
11381242
dependency: transitive
11391243
description:
@@ -1299,6 +1403,14 @@ packages:
12991403
url: "https://pub.dev"
13001404
source: hosted
13011405
version: "1.1.0"
1406+
upower:
1407+
dependency: transitive
1408+
description:
1409+
name: upower
1410+
sha256: cf042403154751180affa1d15614db7fa50234bc2373cd21c3db666c38543ebf
1411+
url: "https://pub.dev"
1412+
source: hosted
1413+
version: "0.7.0"
13021414
uri_parser:
13031415
dependency: transitive
13041416
description:
@@ -1428,13 +1540,13 @@ packages:
14281540
source: hosted
14291541
version: "3.4.0"
14301542
wakelock_plus:
1431-
dependency: transitive
1543+
dependency: "direct main"
14321544
description:
14331545
name: wakelock_plus
1434-
sha256: "61713aa82b7f85c21c9f4cd0a148abd75f38a74ec645fcb1e446f882c82fd09b"
1546+
sha256: "9296d40c9adbedaba95d1e704f4e0b434be446e2792948d0e4aa977048104228"
14351547
url: "https://pub.dev"
14361548
source: hosted
1437-
version: "1.3.3"
1549+
version: "1.4.0"
14381550
wakelock_plus_platform_interface:
14391551
dependency: transitive
14401552
description:

client/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,16 @@ dependencies:
7474
path: ../sdk/python/packages/flet-charts/src/flutter/flet_charts
7575

7676
cupertino_icons: ^1.0.6
77+
wakelock_plus: ^1.4.0
78+
package_info_plus: ^9.0.0
7779

7880
integration_test:
7981
sdk: flutter
8082

8183
dependency_overrides:
8284
flet:
8385
path: ../packages/flet
84-
# webview_flutter_android: ^4.0.0
86+
package_info_plus: ^9.0.0
8587

8688
dev_dependencies:
8789
flutter_test:

client/windows/flutter/generated_plugin_registrant.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
#include "generated_plugin_registrant.h"
88

99
#include <audioplayers_windows/audioplayers_windows_plugin.h>
10+
#include <battery_plus/battery_plus_windows_plugin.h>
11+
#include <connectivity_plus/connectivity_plus_windows_plugin.h>
1012
#include <geolocator_windows/geolocator_windows.h>
1113
#include <media_kit_libs_windows_video/media_kit_libs_windows_video_plugin_c_api.h>
1214
#include <media_kit_video/media_kit_video_plugin_c_api.h>
1315
#include <permission_handler_windows/permission_handler_windows_plugin.h>
1416
#include <record_windows/record_windows_plugin_c_api.h>
1517
#include <rive_common/rive_plugin.h>
18+
#include <screen_brightness_windows/screen_brightness_windows_plugin.h>
1619
#include <screen_retriever_windows/screen_retriever_windows_plugin_c_api.h>
20+
#include <share_plus/share_plus_windows_plugin_c_api.h>
1721
#include <url_launcher_windows/url_launcher_windows.h>
1822
#include <volume_controller/volume_controller_plugin_c_api.h>
1923
#include <window_manager/window_manager_plugin.h>
@@ -22,6 +26,10 @@
2226
void RegisterPlugins(flutter::PluginRegistry* registry) {
2327
AudioplayersWindowsPluginRegisterWithRegistrar(
2428
registry->GetRegistrarForPlugin("AudioplayersWindowsPlugin"));
29+
BatteryPlusWindowsPluginRegisterWithRegistrar(
30+
registry->GetRegistrarForPlugin("BatteryPlusWindowsPlugin"));
31+
ConnectivityPlusWindowsPluginRegisterWithRegistrar(
32+
registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin"));
2533
GeolocatorWindowsRegisterWithRegistrar(
2634
registry->GetRegistrarForPlugin("GeolocatorWindows"));
2735
MediaKitLibsWindowsVideoPluginCApiRegisterWithRegistrar(
@@ -34,8 +42,12 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
3442
registry->GetRegistrarForPlugin("RecordWindowsPluginCApi"));
3543
RivePluginRegisterWithRegistrar(
3644
registry->GetRegistrarForPlugin("RivePlugin"));
45+
ScreenBrightnessWindowsPluginRegisterWithRegistrar(
46+
registry->GetRegistrarForPlugin("ScreenBrightnessWindowsPlugin"));
3747
ScreenRetrieverWindowsPluginCApiRegisterWithRegistrar(
3848
registry->GetRegistrarForPlugin("ScreenRetrieverWindowsPluginCApi"));
49+
SharePlusWindowsPluginCApiRegisterWithRegistrar(
50+
registry->GetRegistrarForPlugin("SharePlusWindowsPluginCApi"));
3951
UrlLauncherWindowsRegisterWithRegistrar(
4052
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
4153
VolumeControllerPluginCApiRegisterWithRegistrar(

client/windows/flutter/generated_plugins.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44

55
list(APPEND FLUTTER_PLUGIN_LIST
66
audioplayers_windows
7+
battery_plus
8+
connectivity_plus
79
geolocator_windows
810
media_kit_libs_windows_video
911
media_kit_video
1012
permission_handler_windows
1113
record_windows
1214
rive_common
15+
screen_brightness_windows
1316
screen_retriever_windows
17+
share_plus
1418
url_launcher_windows
1519
volume_controller
1620
window_manager

0 commit comments

Comments
 (0)