From da2b5796a9c855385d154147caee850ca5588a2c Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Tue, 1 Dec 2020 18:34:03 -0800 Subject: [PATCH 01/20] flutter create -t package web_mouse_click_boundary --- packages/web_mouse_click_boundary/.gitignore | 74 +++++++++++++++++++ packages/web_mouse_click_boundary/.metadata | 10 +++ .../web_mouse_click_boundary/CHANGELOG.md | 3 + packages/web_mouse_click_boundary/LICENSE | 1 + packages/web_mouse_click_boundary/README.md | 14 ++++ .../lib/web_mouse_click_boundary.dart | 7 ++ .../web_mouse_click_boundary/pubspec.yaml | 54 ++++++++++++++ .../test/web_mouse_click_boundary_test.dart | 13 ++++ 8 files changed, 176 insertions(+) create mode 100644 packages/web_mouse_click_boundary/.gitignore create mode 100644 packages/web_mouse_click_boundary/.metadata create mode 100644 packages/web_mouse_click_boundary/CHANGELOG.md create mode 100644 packages/web_mouse_click_boundary/LICENSE create mode 100644 packages/web_mouse_click_boundary/README.md create mode 100644 packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart create mode 100644 packages/web_mouse_click_boundary/pubspec.yaml create mode 100644 packages/web_mouse_click_boundary/test/web_mouse_click_boundary_test.dart diff --git a/packages/web_mouse_click_boundary/.gitignore b/packages/web_mouse_click_boundary/.gitignore new file mode 100644 index 000000000000..1985397a2cb2 --- /dev/null +++ b/packages/web_mouse_click_boundary/.gitignore @@ -0,0 +1,74 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +build/ + +# Android related +**/android/**/gradle-wrapper.jar +**/android/.gradle +**/android/captures/ +**/android/gradlew +**/android/gradlew.bat +**/android/local.properties +**/android/**/GeneratedPluginRegistrant.java + +# iOS/XCode related +**/ios/**/*.mode1v3 +**/ios/**/*.mode2v3 +**/ios/**/*.moved-aside +**/ios/**/*.pbxuser +**/ios/**/*.perspectivev3 +**/ios/**/*sync/ +**/ios/**/.sconsign.dblite +**/ios/**/.tags* +**/ios/**/.vagrant/ +**/ios/**/DerivedData/ +**/ios/**/Icon? +**/ios/**/Pods/ +**/ios/**/.symlinks/ +**/ios/**/profile +**/ios/**/xcuserdata +**/ios/.generated/ +**/ios/Flutter/App.framework +**/ios/Flutter/Flutter.framework +**/ios/Flutter/Flutter.podspec +**/ios/Flutter/Generated.xcconfig +**/ios/Flutter/app.flx +**/ios/Flutter/app.zip +**/ios/Flutter/flutter_assets/ +**/ios/Flutter/flutter_export_environment.sh +**/ios/ServiceDefinitions.json +**/ios/Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!**/ios/**/default.mode1v3 +!**/ios/**/default.mode2v3 +!**/ios/**/default.pbxuser +!**/ios/**/default.perspectivev3 diff --git a/packages/web_mouse_click_boundary/.metadata b/packages/web_mouse_click_boundary/.metadata new file mode 100644 index 000000000000..b5330742eedc --- /dev/null +++ b/packages/web_mouse_click_boundary/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: e6bd95bc5caa5e34c5b0285a559673984374b7ea + channel: master + +project_type: package diff --git a/packages/web_mouse_click_boundary/CHANGELOG.md b/packages/web_mouse_click_boundary/CHANGELOG.md new file mode 100644 index 000000000000..ac071598e5d4 --- /dev/null +++ b/packages/web_mouse_click_boundary/CHANGELOG.md @@ -0,0 +1,3 @@ +## [0.0.1] - TODO: Add release date. + +* TODO: Describe initial release. diff --git a/packages/web_mouse_click_boundary/LICENSE b/packages/web_mouse_click_boundary/LICENSE new file mode 100644 index 000000000000..ba75c69f7f21 --- /dev/null +++ b/packages/web_mouse_click_boundary/LICENSE @@ -0,0 +1 @@ +TODO: Add your license here. diff --git a/packages/web_mouse_click_boundary/README.md b/packages/web_mouse_click_boundary/README.md new file mode 100644 index 000000000000..910732c8d254 --- /dev/null +++ b/packages/web_mouse_click_boundary/README.md @@ -0,0 +1,14 @@ +# web_mouse_click_boundary + +A new Flutter package project. + +## Getting Started + +This project is a starting point for a Dart +[package](https://flutter.dev/developing-packages/), +a library module containing code that can be shared easily across +multiple Flutter or Dart projects. + +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart b/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart new file mode 100644 index 000000000000..00dfbe1a05ec --- /dev/null +++ b/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart @@ -0,0 +1,7 @@ +library web_mouse_click_boundary; + +/// A Calculator. +class Calculator { + /// Returns [value] plus 1. + int addOne(int value) => value + 1; +} diff --git a/packages/web_mouse_click_boundary/pubspec.yaml b/packages/web_mouse_click_boundary/pubspec.yaml new file mode 100644 index 000000000000..eebad9a8a54c --- /dev/null +++ b/packages/web_mouse_click_boundary/pubspec.yaml @@ -0,0 +1,54 @@ +name: web_mouse_click_boundary +description: A new Flutter package project. +version: 0.0.1 +author: +homepage: + +environment: + sdk: ">=2.7.0 <3.0.0" + flutter: ">=1.17.0" + +dependencies: + flutter: + sdk: flutter + +dev_dependencies: + flutter_test: + sdk: flutter + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # To add assets to your package, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + # + # For details regarding assets in packages, see + # https://flutter.dev/assets-and-images/#from-packages + # + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware. + + # To add custom fonts to your package, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts in packages, see + # https://flutter.dev/custom-fonts/#from-packages diff --git a/packages/web_mouse_click_boundary/test/web_mouse_click_boundary_test.dart b/packages/web_mouse_click_boundary/test/web_mouse_click_boundary_test.dart new file mode 100644 index 000000000000..25fbdf3eb8be --- /dev/null +++ b/packages/web_mouse_click_boundary/test/web_mouse_click_boundary_test.dart @@ -0,0 +1,13 @@ +import 'package:flutter_test/flutter_test.dart'; + +import 'package:web_mouse_click_boundary/web_mouse_click_boundary.dart'; + +void main() { + test('adds one to input values', () { + final calculator = Calculator(); + expect(calculator.addOne(2), 3); + expect(calculator.addOne(-7), -6); + expect(calculator.addOne(0), 1); + expect(() => calculator.addOne(null), throwsNoSuchMethodError); + }); +} From b182bf73d797b1093e76196cd9d131cf0671f467 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Tue, 1 Dec 2020 22:04:03 -0800 Subject: [PATCH 02/20] Add Widget class --- .../lib/src/mobile.dart | 25 +++++++ .../lib/src/shim/dart_ui.dart | 10 +++ .../lib/src/shim/dart_ui_fake.dart | 32 +++++++++ .../lib/src/shim/dart_ui_real.dart | 5 ++ .../web_mouse_click_boundary/lib/src/web.dart | 70 +++++++++++++++++++ .../lib/web_mouse_click_boundary.dart | 11 +-- 6 files changed, 148 insertions(+), 5 deletions(-) create mode 100644 packages/web_mouse_click_boundary/lib/src/mobile.dart create mode 100644 packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart create mode 100644 packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart create mode 100644 packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart create mode 100644 packages/web_mouse_click_boundary/lib/src/web.dart diff --git a/packages/web_mouse_click_boundary/lib/src/mobile.dart b/packages/web_mouse_click_boundary/lib/src/mobile.dart new file mode 100644 index 000000000000..4928a29f1882 --- /dev/null +++ b/packages/web_mouse_click_boundary/lib/src/mobile.dart @@ -0,0 +1,25 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// The mobile implementation of the MouseClickBoundary widget. +/// A Widget that prevents clicks from being swallowed by HtmlViewElements. +class MouseClickBoundary extends StatelessWidget { + /// Create a `MouseClickBoundary` around a `child`. + const MouseClickBoundary({@required this.child, this.clickable = false, Key key}) : super(key: key); + + /// The Widget that is being wrapped by this MouseClickBoundary. + /// It needs to be properly sized (like a Button). + final Widget child; + + /// The clickability status of the wrapped child. + /// This is needed in Web to render the correct mouse cursor on wrapped children. + final bool clickable; + + @override + Widget build(BuildContext context) { + return child; + } +} diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart new file mode 100644 index 000000000000..27d39b528e51 --- /dev/null +++ b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart @@ -0,0 +1,10 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// This file shims dart:ui in web-only scenarios, getting rid of the need to +/// suppress analyzer warnings. + +// TODO(flutter/flutter#55000) Remove this file once web-only dart:ui APIs +// are exposed from a dedicated place. +export 'dart_ui_fake.dart' if (dart.library.html) 'dart_ui_real.dart'; diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart new file mode 100644 index 000000000000..9cf31b9aee6b --- /dev/null +++ b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart @@ -0,0 +1,32 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; + +// Fake interface for the logic that this package needs from (web-only) dart:ui. +// This is conditionally exported so the analyzer sees these methods as available. + +/// Shim for web_ui engine.PlatformViewRegistry +/// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L62 +// ignore: camel_case_types +class platformViewRegistry { + /// Shim for registerViewFactory + /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L72 + static void registerViewFactory( + String viewTypeId, html.Element Function(int viewId) viewFactory) {} +} + +/// Shim for web_ui engine.AssetManager. +/// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L12 +// ignore: camel_case_types +class webOnlyAssetManager { + /// Shim for getAssetUrl. + /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L45 + static String getAssetUrl(String asset) { + return null; + } +} + +/// Signature of callbacks that have no arguments and return no data. +typedef VoidCallback = void Function(); diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart new file mode 100644 index 000000000000..16654a0fa967 --- /dev/null +++ b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart @@ -0,0 +1,5 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +export 'dart:ui'; diff --git a/packages/web_mouse_click_boundary/lib/src/web.dart b/packages/web_mouse_click_boundary/lib/src/web.dart new file mode 100644 index 000000000000..aeeb409400e6 --- /dev/null +++ b/packages/web_mouse_click_boundary/lib/src/web.dart @@ -0,0 +1,70 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// ignore: avoid_web_libraries_in_flutter +import 'dart:html' as html; + +import 'package:flutter/widgets.dart'; + +import 'shim/dart_ui.dart' as ui; + +const String _static = '__somethingRandom__'; +const String _clickable = '__somethingClickable__'; + +/// The mobile implementation of the MouseClickBoundary widget. +/// A Widget that prevents clicks from being swallowed by HtmlViewElements. +class MouseClickBoundary extends StatelessWidget { + /// Creates a MouseClickBoundary for the web. + /// If the underlying viewFactories are not registered yet, it registers them. + MouseClickBoundary({@required this.child, this.clickable = false, Key key}) : super(key: key) { + if (!_registered) { + _register(); + } + } + + /// The Widget that is being wrapped by this MouseClickBoundary. + /// It needs to be properly sized (like a Button). + final Widget child; + + /// The clickability status of the wrapped child. + /// This is needed in Web to render the correct mouse cursor on wrapped children. + final bool clickable; + + // Keeps track if this widget has already registered its view factories or not. + static bool _registered = false; + + // Registers the view factories for the boundary widgets. + static void _register() { + assert(!_registered); + ui.platformViewRegistry.registerViewFactory(_static, + (int viewId) { + final html.Element wrapper = html.DivElement() + ..style.backgroundColor = 'rgba(255, 0, 255, .5)'; + + return wrapper; + }); + ui.platformViewRegistry.registerViewFactory(_clickable, + (int viewId) { + final html.Element wrapper = html.DivElement() + ..style.cursor = 'pointer' + ..style.backgroundColor = 'rgba(255, 255, 0, .5)'; + + return wrapper; + }); + _registered = true; + } + + @override + Widget build(BuildContext context) { + final String viewType = clickable ? _clickable : _static; + return Stack( + children: [ + Positioned.fill( + child: HtmlElementView(viewType: viewType,), + ), + child, + ], + ); + } +} diff --git a/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart b/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart index 00dfbe1a05ec..2074df22d20e 100644 --- a/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart +++ b/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart @@ -1,7 +1,8 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + library web_mouse_click_boundary; -/// A Calculator. -class Calculator { - /// Returns [value] plus 1. - int addOne(int value) => value + 1; -} +export 'src/mobile.dart' + if (dart.library.html) 'src/web.dart'; From 152ee4f29ee776f7f5323ef275e99a7a4c8dd580 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Thu, 3 Dec 2020 19:32:15 -0800 Subject: [PATCH 03/20] Add LICENSE. --- packages/web_mouse_click_boundary/LICENSE | 28 ++++++++++++++++++- .../lib/src/mobile.dart | 2 +- .../lib/src/shim/dart_ui.dart | 2 +- .../lib/src/shim/dart_ui_fake.dart | 2 +- .../lib/src/shim/dart_ui_real.dart | 2 +- .../web_mouse_click_boundary/lib/src/web.dart | 2 +- .../lib/web_mouse_click_boundary.dart | 2 +- 7 files changed, 33 insertions(+), 7 deletions(-) diff --git a/packages/web_mouse_click_boundary/LICENSE b/packages/web_mouse_click_boundary/LICENSE index ba75c69f7f21..73e6b6ec6754 100644 --- a/packages/web_mouse_click_boundary/LICENSE +++ b/packages/web_mouse_click_boundary/LICENSE @@ -1 +1,27 @@ -TODO: Add your license here. +Copyright 2019 The Flutter Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/web_mouse_click_boundary/lib/src/mobile.dart b/packages/web_mouse_click_boundary/lib/src/mobile.dart index 4928a29f1882..e33c39b9e37e 100644 --- a/packages/web_mouse_click_boundary/lib/src/mobile.dart +++ b/packages/web_mouse_click_boundary/lib/src/mobile.dart @@ -1,4 +1,4 @@ -// Copyright 2017 The Chromium Authors. All rights reserved. +// Copyright 2019 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart index 27d39b528e51..3a58e6cf4b0a 100644 --- a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart +++ b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart @@ -1,4 +1,4 @@ -// Copyright 2017 The Chromium Authors. All rights reserved. +// Copyright 2019 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart index 9cf31b9aee6b..ccf4dc3c19b3 100644 --- a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart +++ b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart @@ -1,4 +1,4 @@ -// Copyright 2017 The Chromium Authors. All rights reserved. +// Copyright 2019 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart index 16654a0fa967..90ecd7d00290 100644 --- a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart +++ b/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart @@ -1,4 +1,4 @@ -// Copyright 2017 The Chromium Authors. All rights reserved. +// Copyright 2019 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. diff --git a/packages/web_mouse_click_boundary/lib/src/web.dart b/packages/web_mouse_click_boundary/lib/src/web.dart index aeeb409400e6..0fb56607264b 100644 --- a/packages/web_mouse_click_boundary/lib/src/web.dart +++ b/packages/web_mouse_click_boundary/lib/src/web.dart @@ -1,4 +1,4 @@ -// Copyright 2017 The Chromium Authors. All rights reserved. +// Copyright 2019 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. diff --git a/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart b/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart index 2074df22d20e..63d31d65d767 100644 --- a/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart +++ b/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart @@ -1,4 +1,4 @@ -// Copyright 2017 The Chromium Authors. All rights reserved. +// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. From d18e38079314c2d2267cf3c7c38469390714845c Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Thu, 3 Dec 2020 19:33:09 -0800 Subject: [PATCH 04/20] flutter create example --- .../example/.gitignore | 46 ++ .../example/.metadata | 10 + .../example/README.md | 16 + .../example/android/.gitignore | 11 + .../example/android/app/build.gradle | 63 +++ .../android/app/src/debug/AndroidManifest.xml | 7 + .../android/app/src/main/AndroidManifest.xml | 41 ++ .../com/example/example/MainActivity.kt | 6 + .../res/drawable-v21/launch_background.xml | 12 + .../main/res/drawable/launch_background.xml | 12 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 544 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 442 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 721 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 1031 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 1443 bytes .../app/src/main/res/values-night/styles.xml | 18 + .../app/src/main/res/values/styles.xml | 18 + .../app/src/profile/AndroidManifest.xml | 7 + .../example/android/build.gradle | 31 ++ .../example/android/gradle.properties | 3 + .../gradle/wrapper/gradle-wrapper.properties | 6 + .../example/android/settings.gradle | 11 + .../example/ios/.gitignore | 32 ++ .../ios/Flutter/AppFrameworkInfo.plist | 26 + .../example/ios/Flutter/Debug.xcconfig | 1 + .../example/ios/Flutter/Release.xcconfig | 1 + .../ios/Runner.xcodeproj/project.pbxproj | 471 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/WorkspaceSettings.xcsettings | 8 + .../xcshareddata/xcschemes/Runner.xcscheme | 91 ++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/WorkspaceSettings.xcsettings | 8 + .../example/ios/Runner/AppDelegate.swift | 13 + .../AppIcon.appiconset/Contents.json | 122 +++++ .../Icon-App-1024x1024@1x.png | Bin 0 -> 10932 bytes .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin 0 -> 564 bytes .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin 0 -> 1283 bytes .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin 0 -> 1588 bytes .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin 0 -> 1025 bytes .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin 0 -> 1716 bytes .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin 0 -> 1920 bytes .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin 0 -> 1283 bytes .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin 0 -> 1895 bytes .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin 0 -> 2665 bytes .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin 0 -> 2665 bytes .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin 0 -> 3831 bytes .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin 0 -> 1888 bytes .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin 0 -> 3294 bytes .../Icon-App-83.5x83.5@2x.png | Bin 0 -> 3612 bytes .../LaunchImage.imageset/Contents.json | 23 + .../LaunchImage.imageset/LaunchImage.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/LaunchImage@2x.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/LaunchImage@3x.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/README.md | 5 + .../Runner/Base.lproj/LaunchScreen.storyboard | 37 ++ .../ios/Runner/Base.lproj/Main.storyboard | 26 + .../example/ios/Runner/Info.plist | 45 ++ .../ios/Runner/Runner-Bridging-Header.h | 1 + .../example/lib/main.dart | 113 +++++ .../example/pubspec.yaml | 76 +++ .../example/test/widget_test.dart | 30 ++ .../example/web/favicon.png | Bin 0 -> 917 bytes .../example/web/icons/Icon-192.png | Bin 0 -> 5292 bytes .../example/web/icons/Icon-512.png | Bin 0 -> 8252 bytes .../example/web/index.html | 45 ++ .../example/web/manifest.json | 23 + 68 files changed, 1545 insertions(+) create mode 100644 packages/web_mouse_click_boundary/example/.gitignore create mode 100644 packages/web_mouse_click_boundary/example/.metadata create mode 100644 packages/web_mouse_click_boundary/example/README.md create mode 100644 packages/web_mouse_click_boundary/example/android/.gitignore create mode 100644 packages/web_mouse_click_boundary/example/android/app/build.gradle create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/debug/AndroidManifest.xml create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/AndroidManifest.xml create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable-v21/launch_background.xml create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable/launch_background.xml create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/values-night/styles.xml create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/main/res/values/styles.xml create mode 100644 packages/web_mouse_click_boundary/example/android/app/src/profile/AndroidManifest.xml create mode 100644 packages/web_mouse_click_boundary/example/android/build.gradle create mode 100644 packages/web_mouse_click_boundary/example/android/gradle.properties create mode 100644 packages/web_mouse_click_boundary/example/android/gradle/wrapper/gradle-wrapper.properties create mode 100644 packages/web_mouse_click_boundary/example/android/settings.gradle create mode 100644 packages/web_mouse_click_boundary/example/ios/.gitignore create mode 100644 packages/web_mouse_click_boundary/example/ios/Flutter/AppFrameworkInfo.plist create mode 100644 packages/web_mouse_click_boundary/example/ios/Flutter/Debug.xcconfig create mode 100644 packages/web_mouse_click_boundary/example/ios/Flutter/Release.xcconfig create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.pbxproj create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/contents.xcworkspacedata create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/AppDelegate.swift create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/LaunchScreen.storyboard create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/Main.storyboard create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Info.plist create mode 100644 packages/web_mouse_click_boundary/example/ios/Runner/Runner-Bridging-Header.h create mode 100644 packages/web_mouse_click_boundary/example/lib/main.dart create mode 100644 packages/web_mouse_click_boundary/example/pubspec.yaml create mode 100644 packages/web_mouse_click_boundary/example/test/widget_test.dart create mode 100644 packages/web_mouse_click_boundary/example/web/favicon.png create mode 100644 packages/web_mouse_click_boundary/example/web/icons/Icon-192.png create mode 100644 packages/web_mouse_click_boundary/example/web/icons/Icon-512.png create mode 100644 packages/web_mouse_click_boundary/example/web/index.html create mode 100644 packages/web_mouse_click_boundary/example/web/manifest.json diff --git a/packages/web_mouse_click_boundary/example/.gitignore b/packages/web_mouse_click_boundary/example/.gitignore new file mode 100644 index 000000000000..0fa6b675c0a5 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/.gitignore @@ -0,0 +1,46 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Web related +lib/generated_plugin_registrant.dart + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/packages/web_mouse_click_boundary/example/.metadata b/packages/web_mouse_click_boundary/example/.metadata new file mode 100644 index 000000000000..d2885b8e359e --- /dev/null +++ b/packages/web_mouse_click_boundary/example/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: e6bd95bc5caa5e34c5b0285a559673984374b7ea + channel: master + +project_type: app diff --git a/packages/web_mouse_click_boundary/example/README.md b/packages/web_mouse_click_boundary/example/README.md new file mode 100644 index 000000000000..a13562602822 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/README.md @@ -0,0 +1,16 @@ +# example + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) + +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/packages/web_mouse_click_boundary/example/android/.gitignore b/packages/web_mouse_click_boundary/example/android/.gitignore new file mode 100644 index 000000000000..0a741cb43d66 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/.gitignore @@ -0,0 +1,11 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties diff --git a/packages/web_mouse_click_boundary/example/android/app/build.gradle b/packages/web_mouse_click_boundary/example/android/app/build.gradle new file mode 100644 index 000000000000..3932aa910b75 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/build.gradle @@ -0,0 +1,63 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 29 + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + lintOptions { + disable 'InvalidPackage' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.example" + minSdkVersion 16 + targetSdkVersion 29 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/packages/web_mouse_click_boundary/example/android/app/src/debug/AndroidManifest.xml b/packages/web_mouse_click_boundary/example/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 000000000000..c208884f3014 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/AndroidManifest.xml b/packages/web_mouse_click_boundary/example/android/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000000..34dd77efb2ef --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt b/packages/web_mouse_click_boundary/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt new file mode 100644 index 000000000000..e793a000d6a9 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.example + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 000000000000..f74085f3f6a2 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable/launch_background.xml b/packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 000000000000..304732f88420 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 GIT binary patch literal 544 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY3?!3`olAj~WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!h8bpbvhu0Wd6uZuB!w&u2PAxD2eNXD>P5D~Wn-+_Wa#27Xc zC?Zj|6r#X(-D3u$NCt}(Ms06KgJ4FxJVv{GM)!I~&n8Bnc94O7-Hd)cjDZswgC;Qs zO=b+9!WcT8F?0rF7!Uys2bs@gozCP?z~o%U|N3vA*22NaGQG zlg@K`O_XuxvZ&Ks^m&R!`&1=spLvfx7oGDKDwpwW`#iqdw@AL`7MR}m`rwr|mZgU`8P7SBkL78fFf!WnuYWm$5Z0 zNXhDbCv&49sM544K|?c)WrFfiZvCi9h0O)B3Pgg&ebxsLQ05GG~ AQ2+n{ literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..17987b79bb8a35cc66c3c1fd44f5a5526c1b78be GIT binary patch literal 442 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5Xx&nMcT!A!W`0S9QKQy;}1Cl^CgaH=;G9cpY;r$Q>i*pfB zP2drbID<_#qf;rPZx^FqH)F_D#*k@@q03KywUtLX8Ua?`H+NMzkczFPK3lFz@i_kW%1NOn0|D2I9n9wzH8m|-tHjsw|9>@K=iMBhxvkv6m8Y-l zytQ?X=U+MF$@3 zt`~i=@j|6y)RWMK--}M|=T`o&^Ni>IoWKHEbBXz7?A@mgWoL>!*SXo`SZH-*HSdS+ yn*9;$7;m`l>wYBC5bq;=U}IMqLzqbYCidGC!)_gkIk_C@Uy!y&wkt5C($~2D>~)O*cj@FGjOCM)M>_ixfudOh)?xMu#Fs z#}Y=@YDTwOM)x{K_j*Q;dPdJ?Mz0n|pLRx{4n|)f>SXlmV)XB04CrSJn#dS5nK2lM zrZ9#~WelCp7&e13Y$jvaEXHskn$2V!!DN-nWS__6T*l;H&Fopn?A6HZ-6WRLFP=R` zqG+CE#d4|IbyAI+rJJ`&x9*T`+a=p|0O(+s{UBcyZdkhj=yS1>AirP+0R;mf2uMgM zC}@~JfByORAh4SyRgi&!(cja>F(l*O+nd+@4m$|6K6KDn_&uvCpV23&>G9HJp{xgg zoq1^2_p9@|WEo z*X_Uko@K)qYYv~>43eQGMdbiGbo>E~Q& zrYBH{QP^@Sti!`2)uG{irBBq@y*$B zi#&(U-*=fp74j)RyIw49+0MRPMRU)+a2r*PJ$L5roHt2$UjExCTZSbq%V!HeS7J$N zdG@vOZB4v_lF7Plrx+hxo7(fCV&}fHq)$ literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f1c8d34e7a88e3f88bea192c3a370d44689c3c GIT binary patch literal 1031 zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q8Ax83A=Cw=BuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrIztFa`(sgt!6~Yi|1%a`XoT0ojZ}lNrNjb9xjc(B0U1_% zz5^97Xt*%oq$rQy4?0GKNfJ44uvxI)gC`h-NZ|&0-7(qS@?b!5r36oQ}zyZrNO3 zMO=Or+<~>+A&uN&E!^Sl+>xE!QC-|oJv`ApDhqC^EWD|@=#J`=d#Xzxs4ah}w&Jnc z$|q_opQ^2TrnVZ0o~wh<3t%W&flvYGe#$xqda2bR_R zvPYgMcHgjZ5nSA^lJr%;<&0do;O^tDDh~=pIxA#coaCY>&N%M2^tq^U%3DB@ynvKo}b?yu-bFc-u0JHzced$sg7S3zqI(2 z#Km{dPr7I=pQ5>FuK#)QwK?Y`E`B?nP+}U)I#c1+FM*1kNvWG|a(TpksZQ3B@sD~b zpQ2)*V*TdwjFOtHvV|;OsiDqHi=6%)o4b!)x$)%9pGTsE z-JL={-Ffv+T87W(Xpooq<`r*VzWQcgBN$$`u}f>-ZQI1BB8ykN*=e4rIsJx9>z}*o zo~|9I;xof literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d6372eebdb28e45604e46eeda8dd24651419bc0 GIT binary patch literal 1443 zcmb`G{WsKk6vsdJTdFg%tJav9_E4vzrOaqkWF|A724Nly!y+?N9`YV6wZ}5(X(D_N(?!*n3`|_r0Hc?=PQw&*vnU?QTFY zB_MsH|!j$PP;I}?dppoE_gA(4uc!jV&0!l7_;&p2^pxNo>PEcNJv za5_RT$o2Mf!<+r?&EbHH6nMoTsDOa;mN(wv8RNsHpG)`^ymG-S5By8=l9iVXzN_eG%Xg2@Xeq76tTZ*dGh~Lo9vl;Zfs+W#BydUw zCkZ$o1LqWQO$FC9aKlLl*7x9^0q%0}$OMlp@Kk_jHXOjofdePND+j!A{q!8~Jn+s3 z?~~w@4?egS02}8NuulUA=L~QQfm;MzCGd)XhiftT;+zFO&JVyp2mBww?;QByS_1w! zrQlx%{^cMj0|Bo1FjwY@Q8?Hx0cIPF*@-ZRFpPc#bBw{5@tD(5%sClzIfl8WU~V#u zm5Q;_F!wa$BSpqhN>W@2De?TKWR*!ujY;Yylk_X5#~V!L*Gw~;$%4Q8~Mad z@`-kG?yb$a9cHIApZDVZ^U6Xkp<*4rU82O7%}0jjHlK{id@?-wpN*fCHXyXh(bLt* zPc}H-x0e4E&nQ>y%B-(EL=9}RyC%MyX=upHuFhAk&MLbsF0LP-q`XnH78@fT+pKPW zu72MW`|?8ht^tz$iC}ZwLp4tB;Q49K!QCF3@!iB1qOI=?w z7In!}F~ij(18UYUjnbmC!qKhPo%24?8U1x{7o(+?^Zu0Hx81|FuS?bJ0jgBhEMzf< zCgUq7r2OCB(`XkKcN-TL>u5y#dD6D!)5W?`O5)V^>jb)P)GBdy%t$uUMpf$SNV31$ zb||OojAbvMP?T@$h_ZiFLFVHDmbyMhJF|-_)HX3%m=CDI+ID$0^C>kzxprBW)hw(v zr!Gmda);ICoQyhV_oP5+C%?jcG8v+D@9f?Dk*!BxY}dazmrT@64UrP3hlslANK)bq z$67n83eh}OeW&SV@HG95P|bjfqJ7gw$e+`Hxo!4cx`jdK1bJ>YDSpGKLPZ^1cv$ek zIB?0S<#tX?SJCLWdMd{-ME?$hc7A$zBOdIJ)4!KcAwb=VMov)nK;9z>x~rfT1>dS+ zZ6#`2v@`jgbqq)P22H)Tx2CpmM^o1$B+xT6`(v%5xJ(?j#>Q$+rx_R|7TzDZe{J6q zG1*EcU%tE?!kO%^M;3aM6JN*LAKUVb^xz8-Pxo#jR5(-KBeLJvA@-gxNHx0M-ZJLl z;#JwQoh~9V?`UVo#}{6ka@II>++D@%KqGpMdlQ}?9E*wFcf5(#XQnP$Dk5~%iX^>f z%$y;?M0BLp{O3a(-4A?ewryHrrD%cx#Q^%KY1H zNre$ve+vceSLZcNY4U(RBX&)oZn*Py()h)XkE?PL$!bNb{N5FVI2Y%LKEm%yvpyTP z(1P?z~7YxD~Rf<(a@_y` literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/values-night/styles.xml b/packages/web_mouse_click_boundary/example/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 000000000000..449a9f930826 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/values/styles.xml b/packages/web_mouse_click_boundary/example/android/app/src/main/res/values/styles.xml new file mode 100644 index 000000000000..d74aa35c2826 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/android/app/src/profile/AndroidManifest.xml b/packages/web_mouse_click_boundary/example/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 000000000000..c208884f3014 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/packages/web_mouse_click_boundary/example/android/build.gradle b/packages/web_mouse_click_boundary/example/android/build.gradle new file mode 100644 index 000000000000..3100ad2d5553 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/build.gradle @@ -0,0 +1,31 @@ +buildscript { + ext.kotlin_version = '1.3.50' + repositories { + google() + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.5.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/packages/web_mouse_click_boundary/example/android/gradle.properties b/packages/web_mouse_click_boundary/example/android/gradle.properties new file mode 100644 index 000000000000..94adc3a3f97a --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx1536M +android.useAndroidX=true +android.enableJetifier=true diff --git a/packages/web_mouse_click_boundary/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/web_mouse_click_boundary/example/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000000..296b146b7318 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jun 23 08:50:38 CEST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip diff --git a/packages/web_mouse_click_boundary/example/android/settings.gradle b/packages/web_mouse_click_boundary/example/android/settings.gradle new file mode 100644 index 000000000000..44e62bcf06ae --- /dev/null +++ b/packages/web_mouse_click_boundary/example/android/settings.gradle @@ -0,0 +1,11 @@ +include ':app' + +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +assert localPropertiesFile.exists() +localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + +def flutterSdkPath = properties.getProperty("flutter.sdk") +assert flutterSdkPath != null, "flutter.sdk not set in local.properties" +apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/packages/web_mouse_click_boundary/example/ios/.gitignore b/packages/web_mouse_click_boundary/example/ios/.gitignore new file mode 100644 index 000000000000..e96ef602b8d1 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/.gitignore @@ -0,0 +1,32 @@ +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/packages/web_mouse_click_boundary/example/ios/Flutter/AppFrameworkInfo.plist b/packages/web_mouse_click_boundary/example/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 000000000000..6b4c0f78a785 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 8.0 + + diff --git a/packages/web_mouse_click_boundary/example/ios/Flutter/Debug.xcconfig b/packages/web_mouse_click_boundary/example/ios/Flutter/Debug.xcconfig new file mode 100644 index 000000000000..592ceee85b89 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/packages/web_mouse_click_boundary/example/ios/Flutter/Release.xcconfig b/packages/web_mouse_click_boundary/example/ios/Flutter/Release.xcconfig new file mode 100644 index 000000000000..592ceee85b89 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.pbxproj b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 000000000000..c6759a6e8f37 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,471 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.example; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.example; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.example; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000000..1d526a16ed0f --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000000..18d981003d68 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 000000000000..f9b0d7c5ea15 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 000000000000..a28140cfdb3f --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000000..1d526a16ed0f --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000000..18d981003d68 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 000000000000..f9b0d7c5ea15 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/AppDelegate.swift b/packages/web_mouse_click_boundary/example/ios/Runner/AppDelegate.swift new file mode 100644 index 000000000000..70693e4a8c12 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000000..d36b1fab2d9d --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..dc9ada4725e9b0ddb1deab583e5b5102493aa332 GIT binary patch literal 10932 zcmeHN2~<R zh`|8`A_PQ1nSu(UMFx?8j8PC!!VDphaL#`F42fd#7Vlc`zIE4n%Y~eiz4y1j|NDpi z?<@|pSJ-HM`qifhf@m%MamgwK83`XpBA<+azdF#2QsT{X@z0A9Bq>~TVErigKH1~P zRX-!h-f0NJ4Mh++{D}J+K>~~rq}d%o%+4dogzXp7RxX4C>Km5XEI|PAFDmo;DFm6G zzjVoB`@qW98Yl0Kvc-9w09^PrsobmG*Eju^=3f?0o-t$U)TL1B3;sZ^!++3&bGZ!o-*6w?;oOhf z=A+Qb$scV5!RbG+&2S}BQ6YH!FKb0``VVX~T$dzzeSZ$&9=X$3)_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Q2}=U$ tNIIaX+dr)NRWXcxoR{>fqI{SF_dm1Ylv~=3YHI)h002ovPDHLkV1g(pWS;;4 literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..f091b6b0bca859a3f474b03065bef75ba58a9e4c GIT binary patch literal 1588 zcmV-42Fv-0P)C1SqPt}wig>|5Crh^=oyX$BK<}M8eLU3e2hGT;=G|!_SP)7zNI6fqUMB=)y zRAZ>eDe#*r`yDAVgB_R*LB*MAc)8(b{g{9McCXW!lq7r(btRoB9!8B-#AI6JMb~YFBEvdsV)`mEQO^&#eRKx@b&x- z5lZm*!WfD8oCLzfHGz#u7sT0^VLMI1MqGxF^v+`4YYnVYgk*=kU?HsSz{v({E3lb9 z>+xILjBN)t6`=g~IBOelGQ(O990@BfXf(DRI5I$qN$0Gkz-FSc$3a+2fX$AedL4u{ z4V+5Ong(9LiGcIKW?_352sR;LtDPmPJXI{YtT=O8=76o9;*n%_m|xo!i>7$IrZ-{l z-x3`7M}qzHsPV@$v#>H-TpjDh2UE$9g6sysUREDy_R(a)>=eHw-WAyfIN z*qb!_hW>G)Tu8nSw9yn#3wFMiLcfc4pY0ek1}8(NqkBR@t4{~oC>ryc-h_ByH(Cg5 z>ao-}771+xE3um9lWAY1FeQFxowa1(!J(;Jg*wrg!=6FdRX+t_<%z&d&?|Bn){>zm zZQj(aA_HeBY&OC^jj*)N`8fa^ePOU72VpInJoI1?`ty#lvlNzs(&MZX+R%2xS~5Kh zX*|AU4QE#~SgPzOXe9>tRj>hjU@c1k5Y_mW*Jp3fI;)1&g3j|zDgC+}2Q_v%YfDax z!?umcN^n}KYQ|a$Lr+51Nf9dkkYFSjZZjkma$0KOj+;aQ&721~t7QUKx61J3(P4P1 zstI~7-wOACnWP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qt}t-$C|Bo71lHi{_+lg#f%RFy z0um=e3$K3i6K{U_4K!EX?F&rExl^W|G8Z8;`5z-k}OGNZ0#WVb$WCpQu-_YsiqKP?BB# vzVHS-CTUF4Ozn5G+mq_~Qqto~ahA+K`|lyv3(-e}00000NkvXXu0mjfd`9t{ literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef06e7edb86cdfe0d15b4b0d98334a86163658 GIT binary patch literal 1716 zcmds$`#;kQ7{|XelZftyR5~xW7?MLxS4^|Hw3&P7^y)@A9Fj{Xm1~_CIV^XZ%SLBn zA;!r`GqGHg=7>xrB{?psZQs88ZaedDoagm^KF{a*>G|dJWRSe^I$DNW008I^+;Kjt z>9p3GNR^I;v>5_`+91i(*G;u5|L+Bu6M=(afLjtkya#yZ175|z$pU~>2#^Z_pCZ7o z1c6UNcv2B3?; zX%qdxCXQpdKRz=#b*q0P%b&o)5ZrNZt7$fiETSK_VaY=mb4GK`#~0K#~9^ zcY!`#Af+4h?UMR-gMKOmpuYeN5P*RKF!(tb`)oe0j2BH1l?=>y#S5pMqkx6i{*=V9JF%>N8`ewGhRE(|WohnD59R^$_36{4>S zDFlPC5|k?;SPsDo87!B{6*7eqmMdU|QZ84>6)Kd9wNfh90=y=TFQay-0__>=<4pk& zYDjgIhL-jQ9o>z32K)BgAH+HxamL{ZL~ozu)Qqe@a`FpH=oQRA8=L-m-1dam(Ix2V z?du;LdMO+ooBelr^_y4{|44tmgH^2hSzPFd;U^!1p>6d|o)(-01z{i&Kj@)z-yfWQ)V#3Uo!_U}q3u`(fOs`_f^ueFii1xBNUB z6MecwJN$CqV&vhc+)b(p4NzGGEgwWNs z@*lUV6LaduZH)4_g!cE<2G6#+hJrWd5(|p1Z;YJ7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_dm1Ylv~=3YHI)h002ovPDHLkV1g(pWS;;4 literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f9ed8f5cee1c98386d13b17e89f719e83555b2 GIT binary patch literal 1895 zcmV-t2blPYP)FQtfgmafE#=YDCq`qUBt#QpG%*H6QHY765~R=q zZ6iudfM}q!Pz#~9JgOi8QJ|DSu?1-*(kSi1K4#~5?#|rh?sS)(-JQqX*}ciXJ56_H zdw=^s_srbAdqxlvGyrgGet#6T7_|j;95sL%MtM;q86vOxKM$f#puR)Bjv9Zvz9-di zXOTSsZkM83)E9PYBXC<$6(|>lNLVBb&&6y{NByFCp%6+^ALR@NCTse_wqvNmSWI-m z!$%KlHFH2omF!>#%1l3LTZg(s7eof$7*xB)ZQ0h?ejh?Ta9fDv59+u#MokW+1t8Zb zgHv%K(u9G^Lv`lh#f3<6!JVTL3(dCpxHbnbA;kKqQyd1~^Xe0VIaYBSWm6nsr;dFj z4;G-RyL?cYgsN1{L4ZFFNa;8)Rv0fM0C(~Tkit94 zz#~A)59?QjD&pAPSEQ)p8gP|DS{ng)j=2ux)_EzzJ773GmQ_Cic%3JJhC0t2cx>|v zJcVusIB!%F90{+}8hG3QU4KNeKmK%T>mN57NnCZ^56=0?&3@!j>a>B43pi{!u z7JyDj7`6d)qVp^R=%j>UIY6f+3`+qzIc!Y_=+uN^3BYV|o+$vGo-j-Wm<10%A=(Yk^beI{t%ld@yhKjq0iNjqN4XMGgQtbKubPM$JWBz}YA65k%dm*awtC^+f;a-x4+ddbH^7iDWGg&N0n#MW{kA|=8iMUiFYvMoDY@sPC#t$55gn6ykUTPAr`a@!(;np824>2xJthS z*ZdmT`g5-`BuJs`0LVhz+D9NNa3<=6m;cQLaF?tCv8)zcRSh66*Z|vXhG@$I%U~2l z?`Q zykI#*+rQ=z6Jm=Bui-SfpDYLA=|vzGE(dYm=OC8XM&MDo7ux4UF1~0J1+i%aCUpRe zt3L_uNyQ*cE(38Uy03H%I*)*Bh=Lb^Xj3?I^Hnbeq72(EOK^Y93CNp*uAA{5Lc=ky zx=~RKa4{iTm{_>_vSCm?$Ej=i6@=m%@VvAITnigVg{&@!7CDgs908761meDK5azA} z4?=NOH|PdvabgJ&fW2{Mo$Q0CcD8Qc84%{JPYt5EiG{MdLIAeX%T=D7NIP4%Hw}p9 zg)==!2Lbp#j{u_}hMiao9=!VSyx0gHbeCS`;q&vzeq|fs`y&^X-lso(Ls@-706qmA z7u*T5PMo_w3{se1t2`zWeO^hOvTsohG_;>J0wVqVe+n)AbQCx)yh9;w+J6?NF5Lmo zecS@ieAKL8%bVd@+-KT{yI|S}O>pYckUFs;ry9Ow$CD@ztz5K-*D$^{i(_1llhSh^ zEkL$}tsQt5>QA^;QgjgIfBDmcOgi5YDyu?t6vSnbp=1+@6D& z5MJ}B8q;bRlVoxasyhcUF1+)o`&3r0colr}QJ3hcSdLu;9;td>kf@Tcn<@9sIx&=m z;AD;SCh95=&p;$r{Xz3iWCO^MX83AGJ(yH&eTXgv|0=34#-&WAmw{)U7OU9!Wz^!7 zZ%jZFi@JR;>Mhi7S>V7wQ176|FdW2m?&`qa(ScO^CFPR80HucLHOTy%5s*HR0^8)i h0WYBP*#0Ks^FNSabJA*5${_#%002ovPDHLkV1oKhTl@e3 literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 GIT binary patch literal 2665 zcmV-v3YPVWP)oFh3q0MFesq&64WThn3$;G69TfjsAv=f2G9}p zgSx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egnQ46pq+3r=;zmgcG+zRc9D~c>z+jo9&D+`E6$LmyFqlmCYw;-Zooma{sR@~ z)_^|YL1&&@|GXo*pivH7k!msl+$Sew3%XJnxajt0K%3M6Bd&YFNy9}tWG^aovK2eX z1aL1%7;KRDrA@eG-Wr6w+;*H_VD~qLiVI`{_;>o)k`{8xa3EJT1O_>#iy_?va0eR? zDV=N%;Zjb%Z2s$@O>w@iqt!I}tLjGk!=p`D23I}N4Be@$(|iSA zf3Ih7b<{zqpDB4WF_5X1(peKe+rASze%u8eKLn#KKXt;UZ+Adf$_TO+vTqshLLJ5c z52HucO=lrNVae5XWOLm!V@n-ObU11!b+DN<$RuU+YsrBq*lYT;?AwJpmNKniF0Q1< zJCo>Q$=v$@&y=sj6{r!Y&y&`0$-I}S!H_~pI&2H8Z1C|BX4VgZ^-! zje3-;x0PBD!M`v*J_)rL^+$<1VJhH*2Fi~aA7s&@_rUHYJ9zD=M%4AFQ`}k8OC$9s XsPq=LnkwKG00000NkvXXu0mjfhAk5^ literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 GIT binary patch literal 2665 zcmV-v3YPVWP)oFh3q0MFesq&64WThn3$;G69TfjsAv=f2G9}p zgSx99+!YV6qME!>9MD13x)k(+XE7W?_O4LoLb5ND8 zaV{9+P@>42xDfRiYBMSgD$0!vssptcb;&?u9u(LLBKmkZ>RMD=kvD3h`sk6!QYtBa ztlZI#nu$8lJ^q2Z79UTgZe>BU73(Aospiq+?SdMt8lDZ;*?@tyWVZVS_Q7S&*tJaiRlJ z+aSMOmbg3@h5}v;A*c8SbqM3icg-`Cnwl;7Ts%A1RkNIp+Txl-Ckkvg4oxrqGA5ewEgYqwtECD<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b<{zqpDB4WF_5X1(peKe+rASze%u8eKLn#KKXt;UZ+Adf$_TO+vTqshLLJ5c z52HucO=lrNVae5XWOLm!V@n-ObU11!b+DN<$RuU+YsrBq*lYT;?AwJpmNKniF0Q1< zJCo>Q$=v$@&y=sj6{r!Y&y&`0$-I}S!H_~pI&2H8Z1C|BX4VgZ^-! zje3-;x0PBD!M`v*J_)rL^+$<1VJhH*2Fi~aA7s&@_rUHYJ9zD=M%4AFQ`}k8OC$9s XsPq=LnkwKG00000NkvXXu0mjfhAk5^ literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2d164a5a98e212cca15ea7bf2ab5de5108680 GIT binary patch literal 3831 zcmVjJBgitF5mAp-i>4+KS_oR{|13AP->1TD4=w)g|)JHOx|a2Wk1Va z!k)vP$UcQ#mdj%wNQoaJ!w>jv_6&JPyutpQps?s5dmDQ>`%?Bvj>o<%kYG!YW6H-z zu`g$@mp`;qDR!51QaS}|ZToSuAGcJ7$2HF0z`ln4t!#Yg46>;vGG9N9{V@9z#}6v* zfP?}r6b{*-C*)(S>NECI_E~{QYzN5SXRmVnP<=gzP+_Sp(Aza_hKlZ{C1D&l*(7IKXxQC1Z9#6wx}YrGcn~g%;icdw>T0Rf^w0{ z$_wn1J+C0@!jCV<%Go5LA45e{5gY9PvZp8uM$=1}XDI+9m7!A95L>q>>oe0$nC->i zeexUIvq%Uk<-$>DiDb?!In)lAmtuMWxvWlk`2>4lNuhSsjAf2*2tjT`y;@d}($o)S zn(+W&hJ1p0xy@oxP%AM15->wPLp{H!k)BdBD$toBpJh+crWdsNV)qsHaqLg2_s|Ih z`8E9z{E3sA!}5aKu?T!#enD(wLw?IT?k-yWVHZ8Akz4k5(TZJN^zZgm&zM28sfTD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8LHxD0`R0_ATFqp-SdY3(bZ3;VUM?J=O zKCNsxsgt@|&nKMC=*+ZqmLHhX1KHbAJs{nGVMs6~TiF%Q)P@>!koa$%oS zjXa=!5>P`vC-a}ln!uH1ooeI&v?=?v7?1n~P(wZ~0>xWxd_Aw;+}9#eULM7M8&E?Y zC-ZLhi3RoM92SXUb-5i-Lmt5_rfjE{6y^+24`y$1lywLyHO!)Boa7438K4#iLe?rh z2O~YGSgFUBH?og*6=r9rme=peP~ah`(8Zt7V)j5!V0KPFf_mebo3z95U8(up$-+EA^9dTRLq>Yl)YMBuch9%=e5B`Vnb>o zt03=kq;k2TgGe4|lGne&zJa~h(UGutjP_zr?a7~#b)@15XNA>Dj(m=gg2Q5V4-$)D|Q9}R#002ovPDHLkV1o7DH3k3x literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..c4df70d39da7941ef3f6dcb7f06a192d8dcb308d GIT binary patch literal 1888 zcmV-m2cP(fP)x~L`~4d)Rspd&<9kFh{hn*KP1LP0~$;u(LfAu zp%fx&qLBcRHx$G|3q(bv@+b;o0*D|jwD-Q9uQR(l*ST}s+uPgQ-MeFwZ#GS?b332? z&Tk$&_miXn3IGq)AmQ)3sisq{raD4(k*bHvpCe-TdWq^NRTEVM)i9xbgQ&ccnUVx* zEY%vS%gDcSg=!tuIK8$Th2_((_h^+7;R|G{n06&O2#6%LK`a}n?h_fL18btz<@lFG za}xS}u?#DBMB> zw^b($1Z)`9G?eP95EKi&$eOy@K%h;ryrR3la%;>|o*>CgB(s>dDcNOXg}CK9SPmD? zmr-s{0wRmxUnbDrYfRvnZ@d z6johZ2sMX{YkGSKWd}m|@V7`Degt-43=2M?+jR%8{(H$&MLLmS;-|JxnX2pnz;el1jsvqQz}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{ry>MIPWL> iW8Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 000000000000..89c2725b70f1 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 000000000000..f2e259c7c939 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/Main.storyboard b/packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 000000000000..f3c28516fb38 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Info.plist b/packages/web_mouse_click_boundary/example/ios/Runner/Info.plist new file mode 100644 index 000000000000..a060db61e461 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + example + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Runner-Bridging-Header.h b/packages/web_mouse_click_boundary/example/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 000000000000..308a2a560b42 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/packages/web_mouse_click_boundary/example/lib/main.dart b/packages/web_mouse_click_boundary/example/lib/main.dart new file mode 100644 index 000000000000..d8a052651e72 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/lib/main.dart @@ -0,0 +1,113 @@ +import 'package:flutter/material.dart'; + +void main() { + runApp(MyApp()); +} + +class MyApp extends StatelessWidget { + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Demo', + theme: ThemeData( + // This is the theme of your application. + // + // Try running your application with "flutter run". You'll see the + // application has a blue toolbar. Then, without quitting the app, try + // changing the primarySwatch below to Colors.green and then invoke + // "hot reload" (press "r" in the console where you ran "flutter run", + // or simply save your changes to "hot reload" in a Flutter IDE). + // Notice that the counter didn't reset back to zero; the application + // is not restarted. + primarySwatch: Colors.blue, + ), + home: MyHomePage(title: 'Flutter Demo Home Page'), + ); + } +} + +class MyHomePage extends StatefulWidget { + MyHomePage({Key key, this.title}) : super(key: key); + + // This widget is the home page of your application. It is stateful, meaning + // that it has a State object (defined below) that contains fields that affect + // how it looks. + + // This class is the configuration for the state. It holds the values (in this + // case the title) provided by the parent (in this case the App widget) and + // used by the build method of the State. Fields in a Widget subclass are + // always marked "final". + + final String title; + + @override + _MyHomePageState createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + int _counter = 0; + + void _incrementCounter() { + setState(() { + // This call to setState tells the Flutter framework that something has + // changed in this State, which causes it to rerun the build method below + // so that the display can reflect the updated values. If we changed + // _counter without calling setState(), then the build method would not be + // called again, and so nothing would appear to happen. + _counter++; + }); + } + + @override + Widget build(BuildContext context) { + // This method is rerun every time setState is called, for instance as done + // by the _incrementCounter method above. + // + // The Flutter framework has been optimized to make rerunning build methods + // fast, so that you can just rebuild anything that needs updating rather + // than having to individually change instances of widgets. + return Scaffold( + appBar: AppBar( + // Here we take the value from the MyHomePage object that was created by + // the App.build method, and use it to set our appbar title. + title: Text(widget.title), + ), + body: Center( + // Center is a layout widget. It takes a single child and positions it + // in the middle of the parent. + child: Column( + // Column is also a layout widget. It takes a list of children and + // arranges them vertically. By default, it sizes itself to fit its + // children horizontally, and tries to be as tall as its parent. + // + // Invoke "debug painting" (press "p" in the console, choose the + // "Toggle Debug Paint" action from the Flutter Inspector in Android + // Studio, or the "Toggle Debug Paint" command in Visual Studio Code) + // to see the wireframe for each widget. + // + // Column has various properties to control how it sizes itself and + // how it positions its children. Here we use mainAxisAlignment to + // center the children vertically; the main axis here is the vertical + // axis because Columns are vertical (the cross axis would be + // horizontal). + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'You have pushed the button this many times:', + ), + Text( + '$_counter', + style: Theme.of(context).textTheme.headline4, + ), + ], + ), + ), + floatingActionButton: FloatingActionButton( + onPressed: _incrementCounter, + tooltip: 'Increment', + child: Icon(Icons.add), + ), // This trailing comma makes auto-formatting nicer for build methods. + ); + } +} diff --git a/packages/web_mouse_click_boundary/example/pubspec.yaml b/packages/web_mouse_click_boundary/example/pubspec.yaml new file mode 100644 index 000000000000..ec43c976a659 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/pubspec.yaml @@ -0,0 +1,76 @@ +name: example +description: A new Flutter project. + +# The following line prevents the package from being accidentally published to +# pub.dev using `pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: ">=2.7.0 <3.0.0" + +dependencies: + flutter: + sdk: flutter + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.1 + +dev_dependencies: + flutter_test: + sdk: flutter + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware. + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/packages/web_mouse_click_boundary/example/test/widget_test.dart b/packages/web_mouse_click_boundary/example/test/widget_test.dart new file mode 100644 index 000000000000..747db1da35e8 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility that Flutter provides. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:example/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} diff --git a/packages/web_mouse_click_boundary/example/web/favicon.png b/packages/web_mouse_click_boundary/example/web/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa46ac1ae21512746f852a42ba87e4165dfdd1 GIT binary patch literal 917 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0X7 zltGxWVyS%@P(fs7NJL45ua8x7ey(0(N`6wRUPW#JP&EUCO@$SZnVVXYs8ErclUHn2 zVXFjIVFhG^g!Ppaz)DK8ZIvQ?0~DO|i&7O#^-S~(l1AfjnEK zjFOT9D}DX)@^Za$W4-*MbbUihOG|wNBYh(yU7!lx;>x^|#0uTKVr7USFmqf|i<65o z3raHc^AtelCMM;Vme?vOfh>Xph&xL%(-1c06+^uR^q@XSM&D4+Kp$>4P^%3{)XKjo zGZknv$b36P8?Z_gF{nK@`XI}Z90TzwSQO}0J1!f2c(B=V`5aP@1P1a|PZ!4!3&Gl8 zTYqUsf!gYFyJnXpu0!n&N*SYAX-%d(5gVjrHJWqXQshj@!Zm{!01WsQrH~9=kTxW#6SvuapgMqt>$=j#%eyGrQzr zP{L-3gsMA^$I1&gsBAEL+vxi1*Igl=8#8`5?A-T5=z-sk46WA1IUT)AIZHx1rdUrf zVJrJn<74DDw`j)Ki#gt}mIT-Q`XRa2-jQXQoI%w`nb|XblvzK${ZzlV)m-XcwC(od z71_OEC5Bt9GEXosOXaPTYOia#R4ID2TiU~`zVMl08TV_C%DnU4^+HE>9(CE4D6?Fz oujB08i7adh9xk7*FX66dWH6F5TM;?E2b5PlUHx3vIVCg!0Dx9vYXATM literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/web/icons/Icon-192.png b/packages/web_mouse_click_boundary/example/web/icons/Icon-192.png new file mode 100644 index 0000000000000000000000000000000000000000..b749bfef07473333cf1dd31e9eed89862a5d52aa GIT binary patch literal 5292 zcmZ`-2T+sGz6~)*FVZ`aW+(v>MIm&M-g^@e2u-B-DoB?qO+b1Tq<5uCCv>ESfRum& zp%X;f!~1{tzL__3=gjVJ=j=J>+nMj%ncXj1Q(b|Ckbw{Y0FWpt%4y%$uD=Z*c-x~o zE;IoE;xa#7Ll5nj-e4CuXB&G*IM~D21rCP$*xLXAK8rIMCSHuSu%bL&S3)8YI~vyp@KBu9Ph7R_pvKQ@xv>NQ`dZp(u{Z8K3yOB zn7-AR+d2JkW)KiGx0hosml;+eCXp6+w%@STjFY*CJ?udJ64&{BCbuebcuH;}(($@@ znNlgBA@ZXB)mcl9nbX#F!f_5Z=W>0kh|UVWnf!At4V*LQP%*gPdCXd6P@J4Td;!Ur z<2ZLmwr(NG`u#gDEMP19UcSzRTL@HsK+PnIXbVBT@oHm53DZr?~V(0{rsalAfwgo zEh=GviaqkF;}F_5-yA!1u3!gxaR&Mj)hLuj5Q-N-@Lra{%<4ONja8pycD90&>yMB` zchhd>0CsH`^|&TstH-8+R`CfoWqmTTF_0?zDOY`E`b)cVi!$4xA@oO;SyOjJyP^_j zx^@Gdf+w|FW@DMdOi8=4+LJl$#@R&&=UM`)G!y%6ZzQLoSL%*KE8IO0~&5XYR9 z&N)?goEiWA(YoRfT{06&D6Yuu@Qt&XVbuW@COb;>SP9~aRc+z`m`80pB2o%`#{xD@ zI3RAlukL5L>px6b?QW1Ac_0>ew%NM!XB2(H+1Y3AJC?C?O`GGs`331Nd4ZvG~bMo{lh~GeL zSL|tT*fF-HXxXYtfu5z+T5Mx9OdP7J4g%@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)_z>5*!*$x1=Qa-0uE7jy0z`>|Ni#X+uV|%_81F7)b+nf%iz=`fF4g5UfHS_?PHbr zB;0$bK@=di?f`dS(j{l3-tSCfp~zUuva+=EWxJcRfp(<$@vd(GigM&~vaYZ0c#BTs z3ijkxMl=vw5AS&DcXQ%eeKt!uKvh2l3W?&3=dBHU=Gz?O!40S&&~ei2vg**c$o;i89~6DVns zG>9a*`k5)NI9|?W!@9>rzJ;9EJ=YlJTx1r1BA?H`LWijk(rTax9(OAu;q4_wTj-yj z1%W4GW&K4T=uEGb+E!>W0SD_C0RR91 literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/web/icons/Icon-512.png b/packages/web_mouse_click_boundary/example/web/icons/Icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..88cfd48dff1169879ba46840804b412fe02fefd6 GIT binary patch literal 8252 zcmd5=2T+s!lYZ%-(h(2@5fr2dC?F^$C=i-}R6$UX8af(!je;W5yC_|HmujSgN*6?W z3knF*TL1$|?oD*=zPbBVex*RUIKsL<(&Rj9%^UD2IK3W?2j>D?eWQgvS-HLymHo9%~|N2Q{~j za?*X-{b9JRowv_*Mh|;*-kPFn>PI;r<#kFaxFqbn?aq|PduQg=2Q;~Qc}#z)_T%x9 zE|0!a70`58wjREmAH38H1)#gof)U3g9FZ^ zF7&-0^Hy{4XHWLoC*hOG(dg~2g6&?-wqcpf{ z&3=o8vw7lMi22jCG9RQbv8H}`+}9^zSk`nlR8?Z&G2dlDy$4#+WOlg;VHqzuE=fM@ z?OI6HEJH4&tA?FVG}9>jAnq_^tlw8NbjNhfqk2rQr?h(F&WiKy03Sn=-;ZJRh~JrD zbt)zLbnabttEZ>zUiu`N*u4sfQaLE8-WDn@tHp50uD(^r-}UsUUu)`!Rl1PozAc!a z?uj|2QDQ%oV-jxUJmJycySBINSKdX{kDYRS=+`HgR2GO19fg&lZKyBFbbXhQV~v~L za^U944F1_GtuFXtvDdDNDvp<`fqy);>Vw=ncy!NB85Tw{&sT5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Nf5b8(!vGX19hsG z(OP>RmZp29KH9Ge2kKjKigUmOe^K_!UXP`von)PR8Qz$%=EmOB9xS(ZxE_tnyzo}7 z=6~$~9k0M~v}`w={AeqF?_)9q{m8K#6M{a&(;u;O41j)I$^T?lx5(zlebpY@NT&#N zR+1bB)-1-xj}R8uwqwf=iP1GbxBjneCC%UrSdSxK1vM^i9;bUkS#iRZw2H>rS<2<$ zNT3|sDH>{tXb=zq7XZi*K?#Zsa1h1{h5!Tq_YbKFm_*=A5-<~j63he;4`77!|LBlo zR^~tR3yxcU=gDFbshyF6>o0bdp$qmHS7D}m3;^QZq9kBBU|9$N-~oU?G5;jyFR7>z hN`IR97YZXIo@y!QgFWddJ3|0`sjFx!m))><{BI=FK%f8s literal 0 HcmV?d00001 diff --git a/packages/web_mouse_click_boundary/example/web/index.html b/packages/web_mouse_click_boundary/example/web/index.html new file mode 100644 index 000000000000..1460b5e9bac6 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/web/index.html @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + example + + + + + + + + diff --git a/packages/web_mouse_click_boundary/example/web/manifest.json b/packages/web_mouse_click_boundary/example/web/manifest.json new file mode 100644 index 000000000000..8c012917dab7 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "example", + "short_name": "example", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} From ad800f84f4a13fc7186cc7e2a35f094106a400e5 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Mon, 7 Dec 2020 18:17:46 -0800 Subject: [PATCH 05/20] Add debug mode so the trick becomes visible. --- .../lib/src/mobile.dart | 7 ++- .../web_mouse_click_boundary/lib/src/web.dart | 53 +++++++++++++------ 2 files changed, 42 insertions(+), 18 deletions(-) diff --git a/packages/web_mouse_click_boundary/lib/src/mobile.dart b/packages/web_mouse_click_boundary/lib/src/mobile.dart index e33c39b9e37e..df0d4b6d4e05 100644 --- a/packages/web_mouse_click_boundary/lib/src/mobile.dart +++ b/packages/web_mouse_click_boundary/lib/src/mobile.dart @@ -8,7 +8,7 @@ import 'package:flutter/widgets.dart'; /// A Widget that prevents clicks from being swallowed by HtmlViewElements. class MouseClickBoundary extends StatelessWidget { /// Create a `MouseClickBoundary` around a `child`. - const MouseClickBoundary({@required this.child, this.clickable = false, Key key}) : super(key: key); + const MouseClickBoundary({@required this.child, this.clickable = false, this.debug = false, Key key}) : super(key: key); /// The Widget that is being wrapped by this MouseClickBoundary. /// It needs to be properly sized (like a Button). @@ -18,6 +18,11 @@ class MouseClickBoundary extends StatelessWidget { /// This is needed in Web to render the correct mouse cursor on wrapped children. final bool clickable; + /// Render the view with a semi-transparent red background, for debug purposes. + /// This is useful when rendering this as a "layout" widget, like the root element + /// of a sidebar. + final bool debug; + @override Widget build(BuildContext context) { return child; diff --git a/packages/web_mouse_click_boundary/lib/src/web.dart b/packages/web_mouse_click_boundary/lib/src/web.dart index 0fb56607264b..2447e43abfb4 100644 --- a/packages/web_mouse_click_boundary/lib/src/web.dart +++ b/packages/web_mouse_click_boundary/lib/src/web.dart @@ -11,13 +11,36 @@ import 'shim/dart_ui.dart' as ui; const String _static = '__somethingRandom__'; const String _clickable = '__somethingClickable__'; +const String _debug = 'debug__'; + +String _getViewType({bool clickable = false, bool debug = false}) { + String viewType = clickable ? _clickable : _static; + viewType += debug ? _debug : ''; + return viewType; +} + +void _registerWrapper({bool clickable = false, bool debug = false}) { + final String viewType = _getViewType(clickable: clickable, debug: debug); + + ui.platformViewRegistry.registerViewFactory(viewType, + (int viewId) { + final html.Element wrapper = html.DivElement(); + if (clickable) { + wrapper.style.cursor = 'pointer'; + } + if (debug) { + wrapper.style.backgroundColor = 'rgba(255, 0, 0, .5)'; + } + return wrapper; + }); +} /// The mobile implementation of the MouseClickBoundary widget. /// A Widget that prevents clicks from being swallowed by HtmlViewElements. class MouseClickBoundary extends StatelessWidget { /// Creates a MouseClickBoundary for the web. /// If the underlying viewFactories are not registered yet, it registers them. - MouseClickBoundary({@required this.child, this.clickable = false, Key key}) : super(key: key) { + MouseClickBoundary({@required this.child, this.clickable = false, this.debug = false, Key key}) : super(key: key) { if (!_registered) { _register(); } @@ -31,33 +54,29 @@ class MouseClickBoundary extends StatelessWidget { /// This is needed in Web to render the correct mouse cursor on wrapped children. final bool clickable; + /// Render the view with a semi-transparent red background, for debug purposes. + /// This is useful when rendering this as a "layout" widget, like the root child + /// of a sidebar. + final bool debug; + // Keeps track if this widget has already registered its view factories or not. static bool _registered = false; // Registers the view factories for the boundary widgets. static void _register() { assert(!_registered); - ui.platformViewRegistry.registerViewFactory(_static, - (int viewId) { - final html.Element wrapper = html.DivElement() - ..style.backgroundColor = 'rgba(255, 0, 255, .5)'; - - return wrapper; - }); - ui.platformViewRegistry.registerViewFactory(_clickable, - (int viewId) { - final html.Element wrapper = html.DivElement() - ..style.cursor = 'pointer' - ..style.backgroundColor = 'rgba(255, 255, 0, .5)'; - - return wrapper; - }); + + _registerWrapper(); + _registerWrapper(debug: true); + _registerWrapper(clickable: true); + _registerWrapper(clickable: true, debug: true); + _registered = true; } @override Widget build(BuildContext context) { - final String viewType = clickable ? _clickable : _static; + final String viewType = _getViewType(clickable: clickable, debug: debug); return Stack( children: [ Positioned.fill( From 8910fd8a2630f95b8ae65a161084d2cb0a448a18 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Mon, 7 Dec 2020 18:18:17 -0800 Subject: [PATCH 06/20] Add example, which will be used for integration tests later. --- .../example/analysis_options.yaml | 6 + .../example/lib/main.dart | 166 +++++++++++------- .../example/pubspec.yaml | 23 +-- 3 files changed, 111 insertions(+), 84 deletions(-) create mode 100644 packages/web_mouse_click_boundary/example/analysis_options.yaml diff --git a/packages/web_mouse_click_boundary/example/analysis_options.yaml b/packages/web_mouse_click_boundary/example/analysis_options.yaml new file mode 100644 index 000000000000..9a63e711a402 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/analysis_options.yaml @@ -0,0 +1,6 @@ +include: ../../../analysis_options.yaml + +analyzer: + errors: + undefined_prefixed_name: ignore + diff --git a/packages/web_mouse_click_boundary/example/lib/main.dart b/packages/web_mouse_click_boundary/example/lib/main.dart index d8a052651e72..33a27f373ea0 100644 --- a/packages/web_mouse_click_boundary/example/lib/main.dart +++ b/packages/web_mouse_click_boundary/example/lib/main.dart @@ -1,61 +1,77 @@ +// ignore: avoid_web_libraries_in_flutter +import 'dart:html' as html; +import 'dart:ui' as ui; + import 'package:flutter/material.dart'; +import 'package:web_mouse_click_boundary/web_mouse_click_boundary.dart'; + +const String _htmlElementViewType = '_htmlElementViewType'; +const num _videoWidth = 640; +const num _videoHeight = 480; + +/// The html.Element that will be rendered underneath the flutter UI. +/// Check the HtmlElement class at the end for different examples... + +html.Element htmlElement = html.VideoElement() + ..style.width = '100%' + ..style.height = '100%' + // ..style.backgroundColor = '#fabada' + ..src = 'https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4' + ..poster = 'https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217' + ..controls = true; + +// html.Element htmlElement = html.IFrameElement() +// ..width = '100%' +// ..height = '100%' +// ..src = 'https://www.youtube.com/embed/IyFZznAk69U' +// ..style.border = 'none'; + +// html.Element htmlElement = html.DivElement() +// ..style.width = '100%' +// ..style.height = '100%' +// ..style.backgroundColor = '#fabada'; void main() { + // ignore: undefined_prefixed_name + ui.platformViewRegistry.registerViewFactory(_htmlElementViewType, + (int viewId) { + final html.Element wrapper = html.DivElement(); + wrapper.append(htmlElement); + return wrapper; + }); + runApp(MyApp()); } +/// Main app class MyApp extends StatelessWidget { - // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( - title: 'Flutter Demo', - theme: ThemeData( - // This is the theme of your application. - // - // Try running your application with "flutter run". You'll see the - // application has a blue toolbar. Then, without quitting the app, try - // changing the primarySwatch below to Colors.green and then invoke - // "hot reload" (press "r" in the console where you ran "flutter run", - // or simply save your changes to "hot reload" in a Flutter IDE). - // Notice that the counter didn't reset back to zero; the application - // is not restarted. - primarySwatch: Colors.blue, - ), - home: MyHomePage(title: 'Flutter Demo Home Page'), + title: 'Stopping Clicks with some DOM', + home: MyHomePage(), ); } } +/// First page class MyHomePage extends StatefulWidget { - MyHomePage({Key key, this.title}) : super(key: key); - - // This widget is the home page of your application. It is stateful, meaning - // that it has a State object (defined below) that contains fields that affect - // how it looks. - - // This class is the configuration for the state. It holds the values (in this - // case the title) provided by the parent (in this case the App widget) and - // used by the build method of the State. Fields in a Widget subclass are - // always marked "final". - - final String title; - @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State { - int _counter = 0; + String _lastClick = 'none'; + + void _onButtonPressed() { + setState(() { + _lastClick = 'button'; + }); + } - void _incrementCounter() { + void _onHtmlViewPressed() { setState(() { - // This call to setState tells the Flutter framework that something has - // changed in this State, which causes it to rerun the build method below - // so that the display can reflect the updated values. If we changed - // _counter without calling setState(), then the build method would not be - // called again, and so nothing would appear to happen. - _counter++; + _lastClick = 'html-view'; }); } @@ -71,43 +87,65 @@ class _MyHomePageState extends State { appBar: AppBar( // Here we take the value from the MyHomePage object that was created by // the App.build method, and use it to set our appbar title. - title: Text(widget.title), + title: const Text('MouseClickBoundary demo'), ), body: Center( - // Center is a layout widget. It takes a single child and positions it - // in the middle of the parent. child: Column( - // Column is also a layout widget. It takes a list of children and - // arranges them vertically. By default, it sizes itself to fit its - // children horizontally, and tries to be as tall as its parent. - // - // Invoke "debug painting" (press "p" in the console, choose the - // "Toggle Debug Paint" action from the Flutter Inspector in Android - // Studio, or the "Toggle Debug Paint" command in Visual Studio Code) - // to see the wireframe for each widget. - // - // Column has various properties to control how it sizes itself and - // how it positions its children. Here we use mainAxisAlignment to - // center the children vertically; the main axis here is the vertical - // axis because Columns are vertical (the cross axis would be - // horizontal). mainAxisAlignment: MainAxisAlignment.center, children: [ - Text( - 'You have pushed the button this many times:', - ), - Text( - '$_counter', - style: Theme.of(context).textTheme.headline4, + Text('Last click on: $_lastClick', key: const Key('last-clicked'),), + Container( + color: Colors.black, + width: _videoWidth, + height: _videoHeight, + child: Stack( + alignment: Alignment.center, + children: [ + HtmlElement( + onClick: _onHtmlViewPressed, + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + RaisedButton( + key: const Key('transparent-button'), + child: const Text('Never calls onPressed'), + onPressed: _onButtonPressed, + ), + MouseClickBoundary( + clickable: true, + child: RaisedButton( + key: const Key('clickable-button'), + child: const Text('Works As Expected'), + onPressed: _onButtonPressed, + ), + ), + ], + ), + ], + ), ), ], ), ), - floatingActionButton: FloatingActionButton( - onPressed: _incrementCounter, - tooltip: 'Increment', - child: Icon(Icons.add), - ), // This trailing comma makes auto-formatting nicer for build methods. + ); + } +} + +/// Initialize the videoPlayer, then render the corresponding view... +class HtmlElement extends StatelessWidget { + /// Constructor + const HtmlElement({this.onClick}); + + /// A function to run when the element is clicked + final Function onClick; + + @override + Widget build(BuildContext context) { + htmlElement.onClick.listen((_) { onClick(); }); + + return const HtmlElementView( + viewType: _htmlElementViewType, ); } } diff --git a/packages/web_mouse_click_boundary/example/pubspec.yaml b/packages/web_mouse_click_boundary/example/pubspec.yaml index ec43c976a659..6eb9b6fa9915 100644 --- a/packages/web_mouse_click_boundary/example/pubspec.yaml +++ b/packages/web_mouse_click_boundary/example/pubspec.yaml @@ -1,20 +1,6 @@ name: example description: A new Flutter project. - -# The following line prevents the package from being accidentally published to -# pub.dev using `pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev - -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +publish_to: 'none' version: 1.0.0+1 environment: @@ -23,11 +9,8 @@ environment: dependencies: flutter: sdk: flutter - - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.1 + web_mouse_click_boundary: + path: ../ dev_dependencies: flutter_test: From 33024f8703e8eb13223d125eb607f8d1ab2ea40f Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Thu, 10 Dec 2020 17:10:27 -0800 Subject: [PATCH 07/20] Remove 'clickable' attribute. --- .../lib/src/mobile.dart | 6 +---- .../web_mouse_click_boundary/lib/src/web.dart | 26 +++++-------------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/packages/web_mouse_click_boundary/lib/src/mobile.dart b/packages/web_mouse_click_boundary/lib/src/mobile.dart index df0d4b6d4e05..d3facfbf1d0b 100644 --- a/packages/web_mouse_click_boundary/lib/src/mobile.dart +++ b/packages/web_mouse_click_boundary/lib/src/mobile.dart @@ -8,16 +8,12 @@ import 'package:flutter/widgets.dart'; /// A Widget that prevents clicks from being swallowed by HtmlViewElements. class MouseClickBoundary extends StatelessWidget { /// Create a `MouseClickBoundary` around a `child`. - const MouseClickBoundary({@required this.child, this.clickable = false, this.debug = false, Key key}) : super(key: key); + const MouseClickBoundary({@required this.child, this.debug = false, Key key}) : super(key: key); /// The Widget that is being wrapped by this MouseClickBoundary. /// It needs to be properly sized (like a Button). final Widget child; - /// The clickability status of the wrapped child. - /// This is needed in Web to render the correct mouse cursor on wrapped children. - final bool clickable; - /// Render the view with a semi-transparent red background, for debug purposes. /// This is useful when rendering this as a "layout" widget, like the root element /// of a sidebar. diff --git a/packages/web_mouse_click_boundary/lib/src/web.dart b/packages/web_mouse_click_boundary/lib/src/web.dart index 2447e43abfb4..99253fec8548 100644 --- a/packages/web_mouse_click_boundary/lib/src/web.dart +++ b/packages/web_mouse_click_boundary/lib/src/web.dart @@ -9,25 +9,19 @@ import 'package:flutter/widgets.dart'; import 'shim/dart_ui.dart' as ui; -const String _static = '__somethingRandom__'; -const String _clickable = '__somethingClickable__'; +const String _viewType = '__mouseClickBoundaryViewType__'; const String _debug = 'debug__'; -String _getViewType({bool clickable = false, bool debug = false}) { - String viewType = clickable ? _clickable : _static; - viewType += debug ? _debug : ''; - return viewType; +String _getViewType({bool debug = false}) { + return debug ? _viewType + _debug : _viewType; } -void _registerWrapper({bool clickable = false, bool debug = false}) { - final String viewType = _getViewType(clickable: clickable, debug: debug); +void _registerWrapper({bool debug = false}) { + final String viewType = _getViewType(debug: debug); ui.platformViewRegistry.registerViewFactory(viewType, (int viewId) { final html.Element wrapper = html.DivElement(); - if (clickable) { - wrapper.style.cursor = 'pointer'; - } if (debug) { wrapper.style.backgroundColor = 'rgba(255, 0, 0, .5)'; } @@ -40,7 +34,7 @@ void _registerWrapper({bool clickable = false, bool debug = false}) { class MouseClickBoundary extends StatelessWidget { /// Creates a MouseClickBoundary for the web. /// If the underlying viewFactories are not registered yet, it registers them. - MouseClickBoundary({@required this.child, this.clickable = false, this.debug = false, Key key}) : super(key: key) { + MouseClickBoundary({@required this.child, this.debug = false, Key key}) : super(key: key) { if (!_registered) { _register(); } @@ -50,10 +44,6 @@ class MouseClickBoundary extends StatelessWidget { /// It needs to be properly sized (like a Button). final Widget child; - /// The clickability status of the wrapped child. - /// This is needed in Web to render the correct mouse cursor on wrapped children. - final bool clickable; - /// Render the view with a semi-transparent red background, for debug purposes. /// This is useful when rendering this as a "layout" widget, like the root child /// of a sidebar. @@ -68,15 +58,13 @@ class MouseClickBoundary extends StatelessWidget { _registerWrapper(); _registerWrapper(debug: true); - _registerWrapper(clickable: true); - _registerWrapper(clickable: true, debug: true); _registered = true; } @override Widget build(BuildContext context) { - final String viewType = _getViewType(clickable: clickable, debug: debug); + final String viewType = _getViewType(debug: debug); return Stack( children: [ Positioned.fill( From 59538840ffdab0d4174e854a206022deef3d4c16 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Mon, 14 Dec 2020 12:07:07 -0800 Subject: [PATCH 08/20] Update tests and docs. --- packages/web_mouse_click_boundary/README.md | 33 +++++++--- .../example/README.md | 15 ++--- .../example/integration_test/widget_test.dart | 66 +++++++++++++++++++ .../example/lib/main.dart | 58 ++++++++-------- .../example/pubspec.yaml | 3 + .../example/test/widget_test.dart | 30 --------- .../example/test_driver/integration_test.dart | 7 ++ .../web_mouse_click_boundary/test/README.md | 5 ++ .../test/web_mouse_click_boundary_test.dart | 13 ---- 9 files changed, 137 insertions(+), 93 deletions(-) create mode 100644 packages/web_mouse_click_boundary/example/integration_test/widget_test.dart delete mode 100644 packages/web_mouse_click_boundary/example/test/widget_test.dart create mode 100644 packages/web_mouse_click_boundary/example/test_driver/integration_test.dart create mode 100644 packages/web_mouse_click_boundary/test/README.md delete mode 100644 packages/web_mouse_click_boundary/test/web_mouse_click_boundary_test.dart diff --git a/packages/web_mouse_click_boundary/README.md b/packages/web_mouse_click_boundary/README.md index 910732c8d254..59e63a0525de 100644 --- a/packages/web_mouse_click_boundary/README.md +++ b/packages/web_mouse_click_boundary/README.md @@ -1,14 +1,29 @@ # web_mouse_click_boundary -A new Flutter package project. +A small Flutter widget to prevent clicks (in web) from being intercepted by underlying HtmlElement views. -## Getting Started +## How to use -This project is a starting point for a Dart -[package](https://flutter.dev/developing-packages/), -a library module containing code that can be shared easily across -multiple Flutter or Dart projects. +Wrap your button element in a `MouseClickBoundary` widget, like so: -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. +```dart +MouseClickBoundary( + child: RaisedButton(...), +) +``` + +It can also be used as a "layout" element to wrap a bunch of other elements; for example, as the parent of a `Drawer`: + +```dart +Scaffold( + ... + drawer: MouseClickBoundary( + child: Drawer( + child: ... + ), + ), + ... +) +``` + +The `MouseClickBoundary` widget has a `debug` property, that will render it visibly on the screen. This is useful to see what the widget is actually covering when used as a layout element. diff --git a/packages/web_mouse_click_boundary/example/README.md b/packages/web_mouse_click_boundary/example/README.md index a13562602822..7c1d50e46ba4 100644 --- a/packages/web_mouse_click_boundary/example/README.md +++ b/packages/web_mouse_click_boundary/example/README.md @@ -1,16 +1,13 @@ -# example +# web_mouse_click_boundary -A new Flutter project. +A small example for the MouseClickBoundary widget. ## Getting Started -This project is a starting point for a Flutter application. +`flutter run -d chrome` to run the sample. You can tweak some code in the `lib/main.dart`, but be careful, changes there can break integration tests! -A few resources to get you started if this is your first Flutter project: +## Running tests -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) +`flutter drive --target integration_test/widget_test.dart --driver test_driver/integration_test.dart -d web` -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. +The command above will run the integration tests for this package. diff --git a/packages/web_mouse_click_boundary/example/integration_test/widget_test.dart b/packages/web_mouse_click_boundary/example/integration_test/widget_test.dart new file mode 100644 index 000000000000..a3989851cc89 --- /dev/null +++ b/packages/web_mouse_click_boundary/example/integration_test/widget_test.dart @@ -0,0 +1,66 @@ +// Imports the Flutter Driver API. +import 'package:flutter/src/widgets/framework.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; + +import 'package:example/main.dart' as app; + +@visibleForTesting +const Key clickableButtonKey = Key('clickable-button'); + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + group('Widget', () { + // First, define the Finders and use them to locate widgets from the + // test suite. Note: the Strings provided to the `byValueKey` method must + // be the same as the Strings we used for the Keys in step 1. + final Finder resultKeyFinder = find.byKey(const Key('last-clicked')); + final Finder resultTextFinderNone = find.text('Last click on: none'); + final Finder resultTextFinderHtml = find.text('Last click on: html-element'); + final Finder resultTextFinderButton = find.text('Last click on: clickable-button'); + final Finder resultTextFinderTransparentButton = find.text('Last click on: transparent-button'); + + final Finder nonClickableButtonFinder = find.byKey(const Key('transparent-button')); + final Finder clickableButtonFinder = find.byKey(const Key('clickable-button')); + + testWidgets('starts at "none"', (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + expect(resultKeyFinder, findsOneWidget); + expect(resultTextFinderNone, findsOneWidget); + + expect(tester.widget(resultTextFinderNone), tester.widget(resultKeyFinder)); + }); + + testWidgets('clicking on the clickable button works', (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + await tester.tap(clickableButtonFinder); + + await tester.pumpAndSettle(); + + expect(resultKeyFinder, findsOneWidget); + expect(resultTextFinderButton, findsOneWidget); + + expect(tester.widget(resultTextFinderButton), tester.widget(resultKeyFinder)); + }); + + testWidgets('clicks on the transparent button go through', (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + await tester.tap(nonClickableButtonFinder); + + await tester.pumpAndSettle(); + + expect(resultKeyFinder, findsOneWidget); + expect(resultTextFinderTransparentButton, findsNothing); + expect(resultTextFinderHtml, findsOneWidget); + + expect(tester.widget(resultTextFinderHtml), tester.widget(resultKeyFinder)); + }, skip: true); // This test should pass, but does not. It finds a "transparent-button" result. + }); +} diff --git a/packages/web_mouse_click_boundary/example/lib/main.dart b/packages/web_mouse_click_boundary/example/lib/main.dart index 33a27f373ea0..88ebce9dcdf8 100644 --- a/packages/web_mouse_click_boundary/example/lib/main.dart +++ b/packages/web_mouse_click_boundary/example/lib/main.dart @@ -12,13 +12,14 @@ const num _videoHeight = 480; /// The html.Element that will be rendered underneath the flutter UI. /// Check the HtmlElement class at the end for different examples... -html.Element htmlElement = html.VideoElement() - ..style.width = '100%' - ..style.height = '100%' - // ..style.backgroundColor = '#fabada' - ..src = 'https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4' - ..poster = 'https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217' - ..controls = true; +// html.Element htmlElement = html.VideoElement() +// ..style.width = '100%' +// ..style.height = '100%' +// ..style.cursor = 'auto' +// ..style.backgroundColor = 'black' +// ..src = 'https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4' +// ..poster = 'https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217' +// ..controls = true; // html.Element htmlElement = html.IFrameElement() // ..width = '100%' @@ -26,20 +27,12 @@ html.Element htmlElement = html.VideoElement() // ..src = 'https://www.youtube.com/embed/IyFZznAk69U' // ..style.border = 'none'; -// html.Element htmlElement = html.DivElement() -// ..style.width = '100%' -// ..style.height = '100%' -// ..style.backgroundColor = '#fabada'; +html.Element htmlElement = html.DivElement() + ..style.width = '100%' + ..style.height = '100%' + ..style.backgroundColor = '#fabada'; void main() { - // ignore: undefined_prefixed_name - ui.platformViewRegistry.registerViewFactory(_htmlElementViewType, - (int viewId) { - final html.Element wrapper = html.DivElement(); - wrapper.append(htmlElement); - return wrapper; - }); - runApp(MyApp()); } @@ -47,6 +40,14 @@ void main() { class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { + // ignore: undefined_prefixed_name + ui.platformViewRegistry.registerViewFactory(_htmlElementViewType, + (int viewId) { + final html.Element wrapper = html.DivElement(); + wrapper.append(htmlElement); + return wrapper; + }); + return MaterialApp( title: 'Stopping Clicks with some DOM', home: MyHomePage(), @@ -63,15 +64,9 @@ class MyHomePage extends StatefulWidget { class _MyHomePageState extends State { String _lastClick = 'none'; - void _onButtonPressed() { - setState(() { - _lastClick = 'button'; - }); - } - - void _onHtmlViewPressed() { + void _clickedOn(String key) { setState(() { - _lastClick = 'html-view'; + _lastClick = key; }); } @@ -102,22 +97,21 @@ class _MyHomePageState extends State { alignment: Alignment.center, children: [ HtmlElement( - onClick: _onHtmlViewPressed, + onClick: () { _clickedOn('html-element'); }, ), Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ RaisedButton( - key: const Key('transparent-button'), + key: const Key('transparent-button'), child: const Text('Never calls onPressed'), - onPressed: _onButtonPressed, + onPressed: () { _clickedOn('transparent-button'); }, ), MouseClickBoundary( - clickable: true, child: RaisedButton( key: const Key('clickable-button'), child: const Text('Works As Expected'), - onPressed: _onButtonPressed, + onPressed: () { _clickedOn('clickable-button'); }, ), ), ], diff --git a/packages/web_mouse_click_boundary/example/pubspec.yaml b/packages/web_mouse_click_boundary/example/pubspec.yaml index 6eb9b6fa9915..47e24ba9f1a0 100644 --- a/packages/web_mouse_click_boundary/example/pubspec.yaml +++ b/packages/web_mouse_click_boundary/example/pubspec.yaml @@ -13,8 +13,11 @@ dependencies: path: ../ dev_dependencies: + flutter_driver: + sdk: flutter flutter_test: sdk: flutter + integration_test: ^1.0.1 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/web_mouse_click_boundary/example/test/widget_test.dart b/packages/web_mouse_click_boundary/example/test/widget_test.dart deleted file mode 100644 index 747db1da35e8..000000000000 --- a/packages/web_mouse_click_boundary/example/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility that Flutter provides. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:example/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -} diff --git a/packages/web_mouse_click_boundary/example/test_driver/integration_test.dart b/packages/web_mouse_click_boundary/example/test_driver/integration_test.dart new file mode 100644 index 000000000000..64e2248a4f9b --- /dev/null +++ b/packages/web_mouse_click_boundary/example/test_driver/integration_test.dart @@ -0,0 +1,7 @@ +// Copyright 2019 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart'; + +Future main() async => integrationDriver(); diff --git a/packages/web_mouse_click_boundary/test/README.md b/packages/web_mouse_click_boundary/test/README.md new file mode 100644 index 000000000000..7c5b4ad682ba --- /dev/null +++ b/packages/web_mouse_click_boundary/test/README.md @@ -0,0 +1,5 @@ +## test + +This package uses integration tests for testing. + +See `example/README.md` for more info. diff --git a/packages/web_mouse_click_boundary/test/web_mouse_click_boundary_test.dart b/packages/web_mouse_click_boundary/test/web_mouse_click_boundary_test.dart deleted file mode 100644 index 25fbdf3eb8be..000000000000 --- a/packages/web_mouse_click_boundary/test/web_mouse_click_boundary_test.dart +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:flutter_test/flutter_test.dart'; - -import 'package:web_mouse_click_boundary/web_mouse_click_boundary.dart'; - -void main() { - test('adds one to input values', () { - final calculator = Calculator(); - expect(calculator.addOne(2), 3); - expect(calculator.addOne(-7), -6); - expect(calculator.addOne(0), 1); - expect(() => calculator.addOne(null), throwsNoSuchMethodError); - }); -} From 67b043a67b9d5412b0adc082e6bb034d1d86780e Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Mon, 14 Dec 2020 16:01:24 -0800 Subject: [PATCH 09/20] Rename widget to `PointerInterceptor`, and other PR feedback. --- .../web_mouse_click_boundary/CHANGELOG.md | 3 - .../example/analysis_options.yaml | 6 -- .../example/pubspec.yaml | 62 ------------------ .../web_mouse_click_boundary/pubspec.yaml | 54 --------------- .../.gitignore | 0 .../.metadata | 0 packages/web_pointer_interceptor/CHANGELOG.md | 3 + .../LICENSE | 0 .../README.md | 10 +-- .../example/.gitignore | 0 .../example/.metadata | 0 .../example/README.md | 4 +- .../example/android/.gitignore | 0 .../example/android/app/build.gradle | 0 .../android/app/src/debug/AndroidManifest.xml | 0 .../android/app/src/main/AndroidManifest.xml | 0 .../com/example/example/MainActivity.kt | 0 .../res/drawable-v21/launch_background.xml | 0 .../main/res/drawable/launch_background.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../app/src/main/res/values-night/styles.xml | 0 .../app/src/main/res/values/styles.xml | 0 .../app/src/profile/AndroidManifest.xml | 0 .../example/android/build.gradle | 0 .../example/android/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.properties | 0 .../example/android/settings.gradle | 0 .../example/integration_test/widget_test.dart | 5 +- .../example/ios/.gitignore | 0 .../ios/Flutter/AppFrameworkInfo.plist | 0 .../example/ios/Flutter/Debug.xcconfig | 0 .../example/ios/Flutter/Release.xcconfig | 0 .../ios/Runner.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../xcshareddata/xcschemes/Runner.xcscheme | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../example/ios/Runner/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../Icon-App-1024x1024@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin .../Icon-App-83.5x83.5@2x.png | Bin .../LaunchImage.imageset/Contents.json | 0 .../LaunchImage.imageset/LaunchImage.png | Bin .../LaunchImage.imageset/LaunchImage@2x.png | Bin .../LaunchImage.imageset/LaunchImage@3x.png | Bin .../LaunchImage.imageset/README.md | 0 .../Runner/Base.lproj/LaunchScreen.storyboard | 0 .../ios/Runner/Base.lproj/Main.storyboard | 0 .../example/ios/Runner/Info.plist | 0 .../ios/Runner/Runner-Bridging-Header.h | 0 .../example/lib/main.dart | 29 ++++---- .../example}/lib/src/shim/dart_ui.dart | 0 .../example}/lib/src/shim/dart_ui_fake.dart | 0 .../example}/lib/src/shim/dart_ui_real.dart | 0 .../example/pubspec.yaml | 28 ++++++++ .../example/test_driver/integration_test.dart | 0 .../example/web/favicon.png | Bin .../example/web/icons/Icon-192.png | Bin .../example/web/icons/Icon-512.png | Bin .../example/web/index.html | 0 .../example/web/manifest.json | 0 .../lib/src/mobile.dart | 10 +-- .../lib/src/shim/dart_ui.dart | 10 +++ .../lib/src/shim/dart_ui_fake.dart | 32 +++++++++ .../lib/src/shim/dart_ui_real.dart | 5 ++ .../lib/src/web.dart | 12 ++-- .../lib/web_pointer_interceptor.dart} | 2 +- packages/web_pointer_interceptor/pubspec.yaml | 16 +++++ .../test/README.md | 0 89 files changed, 125 insertions(+), 166 deletions(-) delete mode 100644 packages/web_mouse_click_boundary/CHANGELOG.md delete mode 100644 packages/web_mouse_click_boundary/example/analysis_options.yaml delete mode 100644 packages/web_mouse_click_boundary/example/pubspec.yaml delete mode 100644 packages/web_mouse_click_boundary/pubspec.yaml rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/.gitignore (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/.metadata (100%) create mode 100644 packages/web_pointer_interceptor/CHANGELOG.md rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/LICENSE (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/README.md (70%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/.gitignore (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/.metadata (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/README.md (82%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/.gitignore (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/build.gradle (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/debug/AndroidManifest.xml (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/AndroidManifest.xml (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/drawable-v21/launch_background.xml (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/drawable/launch_background.xml (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/values-night/styles.xml (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/main/res/values/styles.xml (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/app/src/profile/AndroidManifest.xml (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/build.gradle (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/gradle.properties (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/gradle/wrapper/gradle-wrapper.properties (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/android/settings.gradle (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/integration_test/widget_test.dart (95%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/.gitignore (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Flutter/AppFrameworkInfo.plist (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Flutter/Debug.xcconfig (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Flutter/Release.xcconfig (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner.xcodeproj/project.pbxproj (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner.xcworkspace/contents.xcworkspacedata (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/AppDelegate.swift (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Base.lproj/LaunchScreen.storyboard (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Base.lproj/Main.storyboard (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Info.plist (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/ios/Runner/Runner-Bridging-Header.h (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/lib/main.dart (83%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor/example}/lib/src/shim/dart_ui.dart (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor/example}/lib/src/shim/dart_ui_fake.dart (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor/example}/lib/src/shim/dart_ui_real.dart (100%) create mode 100644 packages/web_pointer_interceptor/example/pubspec.yaml rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/test_driver/integration_test.dart (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/web/favicon.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/web/icons/Icon-192.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/web/icons/Icon-512.png (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/web/index.html (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/example/web/manifest.json (100%) rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/lib/src/mobile.dart (69%) create mode 100644 packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart create mode 100644 packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart create mode 100644 packages/web_pointer_interceptor/lib/src/shim/dart_ui_real.dart rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/lib/src/web.dart (84%) rename packages/{web_mouse_click_boundary/lib/web_mouse_click_boundary.dart => web_pointer_interceptor/lib/web_pointer_interceptor.dart} (87%) create mode 100644 packages/web_pointer_interceptor/pubspec.yaml rename packages/{web_mouse_click_boundary => web_pointer_interceptor}/test/README.md (100%) diff --git a/packages/web_mouse_click_boundary/CHANGELOG.md b/packages/web_mouse_click_boundary/CHANGELOG.md deleted file mode 100644 index ac071598e5d4..000000000000 --- a/packages/web_mouse_click_boundary/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -## [0.0.1] - TODO: Add release date. - -* TODO: Describe initial release. diff --git a/packages/web_mouse_click_boundary/example/analysis_options.yaml b/packages/web_mouse_click_boundary/example/analysis_options.yaml deleted file mode 100644 index 9a63e711a402..000000000000 --- a/packages/web_mouse_click_boundary/example/analysis_options.yaml +++ /dev/null @@ -1,6 +0,0 @@ -include: ../../../analysis_options.yaml - -analyzer: - errors: - undefined_prefixed_name: ignore - diff --git a/packages/web_mouse_click_boundary/example/pubspec.yaml b/packages/web_mouse_click_boundary/example/pubspec.yaml deleted file mode 100644 index 47e24ba9f1a0..000000000000 --- a/packages/web_mouse_click_boundary/example/pubspec.yaml +++ /dev/null @@ -1,62 +0,0 @@ -name: example -description: A new Flutter project. -publish_to: 'none' -version: 1.0.0+1 - -environment: - sdk: ">=2.7.0 <3.0.0" - -dependencies: - flutter: - sdk: flutter - web_mouse_click_boundary: - path: ../ - -dev_dependencies: - flutter_driver: - sdk: flutter - flutter_test: - sdk: flutter - integration_test: ^1.0.1 - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter. -flutter: - - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. - uses-material-design: true - - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. - - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/packages/web_mouse_click_boundary/pubspec.yaml b/packages/web_mouse_click_boundary/pubspec.yaml deleted file mode 100644 index eebad9a8a54c..000000000000 --- a/packages/web_mouse_click_boundary/pubspec.yaml +++ /dev/null @@ -1,54 +0,0 @@ -name: web_mouse_click_boundary -description: A new Flutter package project. -version: 0.0.1 -author: -homepage: - -environment: - sdk: ">=2.7.0 <3.0.0" - flutter: ">=1.17.0" - -dependencies: - flutter: - sdk: flutter - -dev_dependencies: - flutter_test: - sdk: flutter - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter. -flutter: - - # To add assets to your package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. - - # To add custom fonts to your package, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts in packages, see - # https://flutter.dev/custom-fonts/#from-packages diff --git a/packages/web_mouse_click_boundary/.gitignore b/packages/web_pointer_interceptor/.gitignore similarity index 100% rename from packages/web_mouse_click_boundary/.gitignore rename to packages/web_pointer_interceptor/.gitignore diff --git a/packages/web_mouse_click_boundary/.metadata b/packages/web_pointer_interceptor/.metadata similarity index 100% rename from packages/web_mouse_click_boundary/.metadata rename to packages/web_pointer_interceptor/.metadata diff --git a/packages/web_pointer_interceptor/CHANGELOG.md b/packages/web_pointer_interceptor/CHANGELOG.md new file mode 100644 index 000000000000..a30a8328bc5a --- /dev/null +++ b/packages/web_pointer_interceptor/CHANGELOG.md @@ -0,0 +1,3 @@ +## 0.8.0 + +* Initial release of the `PointerInterceptor` widget. diff --git a/packages/web_mouse_click_boundary/LICENSE b/packages/web_pointer_interceptor/LICENSE similarity index 100% rename from packages/web_mouse_click_boundary/LICENSE rename to packages/web_pointer_interceptor/LICENSE diff --git a/packages/web_mouse_click_boundary/README.md b/packages/web_pointer_interceptor/README.md similarity index 70% rename from packages/web_mouse_click_boundary/README.md rename to packages/web_pointer_interceptor/README.md index 59e63a0525de..3f6a3010e10b 100644 --- a/packages/web_mouse_click_boundary/README.md +++ b/packages/web_pointer_interceptor/README.md @@ -1,13 +1,13 @@ -# web_mouse_click_boundary +# web_pointer_interceptor A small Flutter widget to prevent clicks (in web) from being intercepted by underlying HtmlElement views. ## How to use -Wrap your button element in a `MouseClickBoundary` widget, like so: +Wrap your button element in a `PointerInterceptor` widget, like so: ```dart -MouseClickBoundary( +PointerInterceptor( child: RaisedButton(...), ) ``` @@ -17,7 +17,7 @@ It can also be used as a "layout" element to wrap a bunch of other elements; for ```dart Scaffold( ... - drawer: MouseClickBoundary( + drawer: PointerInterceptor( child: Drawer( child: ... ), @@ -26,4 +26,4 @@ Scaffold( ) ``` -The `MouseClickBoundary` widget has a `debug` property, that will render it visibly on the screen. This is useful to see what the widget is actually covering when used as a layout element. +The `PointerInterceptor` widget has a `debug` property, that will render it visibly on the screen. This is useful to see what the widget is actually covering when used as a layout element. diff --git a/packages/web_mouse_click_boundary/example/.gitignore b/packages/web_pointer_interceptor/example/.gitignore similarity index 100% rename from packages/web_mouse_click_boundary/example/.gitignore rename to packages/web_pointer_interceptor/example/.gitignore diff --git a/packages/web_mouse_click_boundary/example/.metadata b/packages/web_pointer_interceptor/example/.metadata similarity index 100% rename from packages/web_mouse_click_boundary/example/.metadata rename to packages/web_pointer_interceptor/example/.metadata diff --git a/packages/web_mouse_click_boundary/example/README.md b/packages/web_pointer_interceptor/example/README.md similarity index 82% rename from packages/web_mouse_click_boundary/example/README.md rename to packages/web_pointer_interceptor/example/README.md index 7c1d50e46ba4..66f70208ba3b 100644 --- a/packages/web_mouse_click_boundary/example/README.md +++ b/packages/web_pointer_interceptor/example/README.md @@ -1,6 +1,6 @@ -# web_mouse_click_boundary +# web_pointer_interceptor -A small example for the MouseClickBoundary widget. +A small example for the PointerInterceptor widget. ## Getting Started diff --git a/packages/web_mouse_click_boundary/example/android/.gitignore b/packages/web_pointer_interceptor/example/android/.gitignore similarity index 100% rename from packages/web_mouse_click_boundary/example/android/.gitignore rename to packages/web_pointer_interceptor/example/android/.gitignore diff --git a/packages/web_mouse_click_boundary/example/android/app/build.gradle b/packages/web_pointer_interceptor/example/android/app/build.gradle similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/build.gradle rename to packages/web_pointer_interceptor/example/android/app/build.gradle diff --git a/packages/web_mouse_click_boundary/example/android/app/src/debug/AndroidManifest.xml b/packages/web_pointer_interceptor/example/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/debug/AndroidManifest.xml rename to packages/web_pointer_interceptor/example/android/app/src/debug/AndroidManifest.xml diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/AndroidManifest.xml b/packages/web_pointer_interceptor/example/android/app/src/main/AndroidManifest.xml similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/AndroidManifest.xml rename to packages/web_pointer_interceptor/example/android/app/src/main/AndroidManifest.xml diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt b/packages/web_pointer_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt rename to packages/web_pointer_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/web_pointer_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable-v21/launch_background.xml rename to packages/web_pointer_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable/launch_background.xml b/packages/web_pointer_interceptor/example/android/app/src/main/res/drawable/launch_background.xml similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/drawable/launch_background.xml rename to packages/web_pointer_interceptor/example/android/app/src/main/res/drawable/launch_background.xml diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/values-night/styles.xml b/packages/web_pointer_interceptor/example/android/app/src/main/res/values-night/styles.xml similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/values-night/styles.xml rename to packages/web_pointer_interceptor/example/android/app/src/main/res/values-night/styles.xml diff --git a/packages/web_mouse_click_boundary/example/android/app/src/main/res/values/styles.xml b/packages/web_pointer_interceptor/example/android/app/src/main/res/values/styles.xml similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/main/res/values/styles.xml rename to packages/web_pointer_interceptor/example/android/app/src/main/res/values/styles.xml diff --git a/packages/web_mouse_click_boundary/example/android/app/src/profile/AndroidManifest.xml b/packages/web_pointer_interceptor/example/android/app/src/profile/AndroidManifest.xml similarity index 100% rename from packages/web_mouse_click_boundary/example/android/app/src/profile/AndroidManifest.xml rename to packages/web_pointer_interceptor/example/android/app/src/profile/AndroidManifest.xml diff --git a/packages/web_mouse_click_boundary/example/android/build.gradle b/packages/web_pointer_interceptor/example/android/build.gradle similarity index 100% rename from packages/web_mouse_click_boundary/example/android/build.gradle rename to packages/web_pointer_interceptor/example/android/build.gradle diff --git a/packages/web_mouse_click_boundary/example/android/gradle.properties b/packages/web_pointer_interceptor/example/android/gradle.properties similarity index 100% rename from packages/web_mouse_click_boundary/example/android/gradle.properties rename to packages/web_pointer_interceptor/example/android/gradle.properties diff --git a/packages/web_mouse_click_boundary/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/web_pointer_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from packages/web_mouse_click_boundary/example/android/gradle/wrapper/gradle-wrapper.properties rename to packages/web_pointer_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/packages/web_mouse_click_boundary/example/android/settings.gradle b/packages/web_pointer_interceptor/example/android/settings.gradle similarity index 100% rename from packages/web_mouse_click_boundary/example/android/settings.gradle rename to packages/web_pointer_interceptor/example/android/settings.gradle diff --git a/packages/web_mouse_click_boundary/example/integration_test/widget_test.dart b/packages/web_pointer_interceptor/example/integration_test/widget_test.dart similarity index 95% rename from packages/web_mouse_click_boundary/example/integration_test/widget_test.dart rename to packages/web_pointer_interceptor/example/integration_test/widget_test.dart index a3989851cc89..76bd4fc5ed78 100644 --- a/packages/web_mouse_click_boundary/example/integration_test/widget_test.dart +++ b/packages/web_pointer_interceptor/example/integration_test/widget_test.dart @@ -3,10 +3,7 @@ import 'package:flutter/src/widgets/framework.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; -import 'package:example/main.dart' as app; - -@visibleForTesting -const Key clickableButtonKey = Key('clickable-button'); +import 'package:web_pointer_interceptor_example/main.dart' as app; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); diff --git a/packages/web_mouse_click_boundary/example/ios/.gitignore b/packages/web_pointer_interceptor/example/ios/.gitignore similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/.gitignore rename to packages/web_pointer_interceptor/example/ios/.gitignore diff --git a/packages/web_mouse_click_boundary/example/ios/Flutter/AppFrameworkInfo.plist b/packages/web_pointer_interceptor/example/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Flutter/AppFrameworkInfo.plist rename to packages/web_pointer_interceptor/example/ios/Flutter/AppFrameworkInfo.plist diff --git a/packages/web_mouse_click_boundary/example/ios/Flutter/Debug.xcconfig b/packages/web_pointer_interceptor/example/ios/Flutter/Debug.xcconfig similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Flutter/Debug.xcconfig rename to packages/web_pointer_interceptor/example/ios/Flutter/Debug.xcconfig diff --git a/packages/web_mouse_click_boundary/example/ios/Flutter/Release.xcconfig b/packages/web_pointer_interceptor/example/ios/Flutter/Release.xcconfig similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Flutter/Release.xcconfig rename to packages/web_pointer_interceptor/example/ios/Flutter/Release.xcconfig diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.pbxproj b/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.pbxproj rename to packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.pbxproj diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/contents.xcworkspacedata rename to packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/AppDelegate.swift b/packages/web_pointer_interceptor/example/ios/Runner/AppDelegate.swift similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/AppDelegate.swift rename to packages/web_pointer_interceptor/example/ios/Runner/AppDelegate.swift diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/web_pointer_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to packages/web_pointer_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/Main.storyboard b/packages/web_pointer_interceptor/example/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Base.lproj/Main.storyboard rename to packages/web_pointer_interceptor/example/ios/Runner/Base.lproj/Main.storyboard diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Info.plist b/packages/web_pointer_interceptor/example/ios/Runner/Info.plist similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Info.plist rename to packages/web_pointer_interceptor/example/ios/Runner/Info.plist diff --git a/packages/web_mouse_click_boundary/example/ios/Runner/Runner-Bridging-Header.h b/packages/web_pointer_interceptor/example/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from packages/web_mouse_click_boundary/example/ios/Runner/Runner-Bridging-Header.h rename to packages/web_pointer_interceptor/example/ios/Runner/Runner-Bridging-Header.h diff --git a/packages/web_mouse_click_boundary/example/lib/main.dart b/packages/web_pointer_interceptor/example/lib/main.dart similarity index 83% rename from packages/web_mouse_click_boundary/example/lib/main.dart rename to packages/web_pointer_interceptor/example/lib/main.dart index 88ebce9dcdf8..42fff39b4e25 100644 --- a/packages/web_mouse_click_boundary/example/lib/main.dart +++ b/packages/web_pointer_interceptor/example/lib/main.dart @@ -1,16 +1,22 @@ // ignore: avoid_web_libraries_in_flutter import 'dart:html' as html; -import 'dart:ui' as ui; import 'package:flutter/material.dart'; -import 'package:web_mouse_click_boundary/web_mouse_click_boundary.dart'; +import 'package:web_pointer_interceptor/web_pointer_interceptor.dart'; + +import 'src/shim/dart_ui.dart' as ui; const String _htmlElementViewType = '_htmlElementViewType'; const num _videoWidth = 640; const num _videoHeight = 480; /// The html.Element that will be rendered underneath the flutter UI. -/// Check the HtmlElement class at the end for different examples... +html.Element htmlElement = html.DivElement() + ..style.width = '100%' + ..style.height = '100%' + ..style.backgroundColor = '#fabada'; + +// See other examples commented out below... // html.Element htmlElement = html.VideoElement() // ..style.width = '100%' @@ -27,11 +33,6 @@ const num _videoHeight = 480; // ..src = 'https://www.youtube.com/embed/IyFZznAk69U' // ..style.border = 'none'; -html.Element htmlElement = html.DivElement() - ..style.width = '100%' - ..style.height = '100%' - ..style.backgroundColor = '#fabada'; - void main() { runApp(MyApp()); } @@ -72,17 +73,9 @@ class _MyHomePageState extends State { @override Widget build(BuildContext context) { - // This method is rerun every time setState is called, for instance as done - // by the _incrementCounter method above. - // - // The Flutter framework has been optimized to make rerunning build methods - // fast, so that you can just rebuild anything that needs updating rather - // than having to individually change instances of widgets. return Scaffold( appBar: AppBar( - // Here we take the value from the MyHomePage object that was created by - // the App.build method, and use it to set our appbar title. - title: const Text('MouseClickBoundary demo'), + title: const Text('PointerInterceptor demo'), ), body: Center( child: Column( @@ -107,7 +100,7 @@ class _MyHomePageState extends State { child: const Text('Never calls onPressed'), onPressed: () { _clickedOn('transparent-button'); }, ), - MouseClickBoundary( + PointerInterceptor( child: RaisedButton( key: const Key('clickable-button'), child: const Text('Works As Expected'), diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart b/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui.dart similarity index 100% rename from packages/web_mouse_click_boundary/lib/src/shim/dart_ui.dart rename to packages/web_pointer_interceptor/example/lib/src/shim/dart_ui.dart diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart b/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart similarity index 100% rename from packages/web_mouse_click_boundary/lib/src/shim/dart_ui_fake.dart rename to packages/web_pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart diff --git a/packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart b/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui_real.dart similarity index 100% rename from packages/web_mouse_click_boundary/lib/src/shim/dart_ui_real.dart rename to packages/web_pointer_interceptor/example/lib/src/shim/dart_ui_real.dart diff --git a/packages/web_pointer_interceptor/example/pubspec.yaml b/packages/web_pointer_interceptor/example/pubspec.yaml new file mode 100644 index 000000000000..fd9feac1b0e0 --- /dev/null +++ b/packages/web_pointer_interceptor/example/pubspec.yaml @@ -0,0 +1,28 @@ +name: web_pointer_interceptor_example +description: A new Flutter project. +publish_to: 'none' +version: 1.0.0 + +environment: + sdk: ">=2.7.0 <3.0.0" + +dependencies: + flutter: + sdk: flutter + web_pointer_interceptor: + path: ../ + +dev_dependencies: + flutter_driver: + sdk: flutter + flutter_test: + sdk: flutter + integration_test: ^1.0.1 + +# The following section is specific to Flutter. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true diff --git a/packages/web_mouse_click_boundary/example/test_driver/integration_test.dart b/packages/web_pointer_interceptor/example/test_driver/integration_test.dart similarity index 100% rename from packages/web_mouse_click_boundary/example/test_driver/integration_test.dart rename to packages/web_pointer_interceptor/example/test_driver/integration_test.dart diff --git a/packages/web_mouse_click_boundary/example/web/favicon.png b/packages/web_pointer_interceptor/example/web/favicon.png similarity index 100% rename from packages/web_mouse_click_boundary/example/web/favicon.png rename to packages/web_pointer_interceptor/example/web/favicon.png diff --git a/packages/web_mouse_click_boundary/example/web/icons/Icon-192.png b/packages/web_pointer_interceptor/example/web/icons/Icon-192.png similarity index 100% rename from packages/web_mouse_click_boundary/example/web/icons/Icon-192.png rename to packages/web_pointer_interceptor/example/web/icons/Icon-192.png diff --git a/packages/web_mouse_click_boundary/example/web/icons/Icon-512.png b/packages/web_pointer_interceptor/example/web/icons/Icon-512.png similarity index 100% rename from packages/web_mouse_click_boundary/example/web/icons/Icon-512.png rename to packages/web_pointer_interceptor/example/web/icons/Icon-512.png diff --git a/packages/web_mouse_click_boundary/example/web/index.html b/packages/web_pointer_interceptor/example/web/index.html similarity index 100% rename from packages/web_mouse_click_boundary/example/web/index.html rename to packages/web_pointer_interceptor/example/web/index.html diff --git a/packages/web_mouse_click_boundary/example/web/manifest.json b/packages/web_pointer_interceptor/example/web/manifest.json similarity index 100% rename from packages/web_mouse_click_boundary/example/web/manifest.json rename to packages/web_pointer_interceptor/example/web/manifest.json diff --git a/packages/web_mouse_click_boundary/lib/src/mobile.dart b/packages/web_pointer_interceptor/lib/src/mobile.dart similarity index 69% rename from packages/web_mouse_click_boundary/lib/src/mobile.dart rename to packages/web_pointer_interceptor/lib/src/mobile.dart index d3facfbf1d0b..142bac5046ba 100644 --- a/packages/web_mouse_click_boundary/lib/src/mobile.dart +++ b/packages/web_pointer_interceptor/lib/src/mobile.dart @@ -4,13 +4,13 @@ import 'package:flutter/widgets.dart'; -/// The mobile implementation of the MouseClickBoundary widget. +/// The mobile implementation of the PointerInterceptor widget. /// A Widget that prevents clicks from being swallowed by HtmlViewElements. -class MouseClickBoundary extends StatelessWidget { - /// Create a `MouseClickBoundary` around a `child`. - const MouseClickBoundary({@required this.child, this.debug = false, Key key}) : super(key: key); +class PointerInterceptor extends StatelessWidget { + /// Create a `PointerInterceptor` around a `child`. + const PointerInterceptor({@required this.child, this.debug = false, Key key}) : super(key: key); - /// The Widget that is being wrapped by this MouseClickBoundary. + /// The Widget that is being wrapped by this PointerInterceptor. /// It needs to be properly sized (like a Button). final Widget child; diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart b/packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart new file mode 100644 index 000000000000..3a58e6cf4b0a --- /dev/null +++ b/packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart @@ -0,0 +1,10 @@ +// Copyright 2019 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// This file shims dart:ui in web-only scenarios, getting rid of the need to +/// suppress analyzer warnings. + +// TODO(flutter/flutter#55000) Remove this file once web-only dart:ui APIs +// are exposed from a dedicated place. +export 'dart_ui_fake.dart' if (dart.library.html) 'dart_ui_real.dart'; diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart b/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart new file mode 100644 index 000000000000..ccf4dc3c19b3 --- /dev/null +++ b/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart @@ -0,0 +1,32 @@ +// Copyright 2019 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; + +// Fake interface for the logic that this package needs from (web-only) dart:ui. +// This is conditionally exported so the analyzer sees these methods as available. + +/// Shim for web_ui engine.PlatformViewRegistry +/// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L62 +// ignore: camel_case_types +class platformViewRegistry { + /// Shim for registerViewFactory + /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L72 + static void registerViewFactory( + String viewTypeId, html.Element Function(int viewId) viewFactory) {} +} + +/// Shim for web_ui engine.AssetManager. +/// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L12 +// ignore: camel_case_types +class webOnlyAssetManager { + /// Shim for getAssetUrl. + /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L45 + static String getAssetUrl(String asset) { + return null; + } +} + +/// Signature of callbacks that have no arguments and return no data. +typedef VoidCallback = void Function(); diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui_real.dart b/packages/web_pointer_interceptor/lib/src/shim/dart_ui_real.dart new file mode 100644 index 000000000000..90ecd7d00290 --- /dev/null +++ b/packages/web_pointer_interceptor/lib/src/shim/dart_ui_real.dart @@ -0,0 +1,5 @@ +// Copyright 2019 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +export 'dart:ui'; diff --git a/packages/web_mouse_click_boundary/lib/src/web.dart b/packages/web_pointer_interceptor/lib/src/web.dart similarity index 84% rename from packages/web_mouse_click_boundary/lib/src/web.dart rename to packages/web_pointer_interceptor/lib/src/web.dart index 99253fec8548..0513b72e65a2 100644 --- a/packages/web_mouse_click_boundary/lib/src/web.dart +++ b/packages/web_pointer_interceptor/lib/src/web.dart @@ -9,7 +9,7 @@ import 'package:flutter/widgets.dart'; import 'shim/dart_ui.dart' as ui; -const String _viewType = '__mouseClickBoundaryViewType__'; +const String _viewType = '__webPointerInterceptorViewType__'; const String _debug = 'debug__'; String _getViewType({bool debug = false}) { @@ -29,18 +29,18 @@ void _registerWrapper({bool debug = false}) { }); } -/// The mobile implementation of the MouseClickBoundary widget. +/// The mobile implementation of the PointerInterceptor widget. /// A Widget that prevents clicks from being swallowed by HtmlViewElements. -class MouseClickBoundary extends StatelessWidget { - /// Creates a MouseClickBoundary for the web. +class PointerInterceptor extends StatelessWidget { + /// Creates a PointerInterceptor for the web. /// If the underlying viewFactories are not registered yet, it registers them. - MouseClickBoundary({@required this.child, this.debug = false, Key key}) : super(key: key) { + PointerInterceptor({@required this.child, this.debug = false, Key key}) : super(key: key) { if (!_registered) { _register(); } } - /// The Widget that is being wrapped by this MouseClickBoundary. + /// The Widget that is being wrapped by this PointerInterceptor. /// It needs to be properly sized (like a Button). final Widget child; diff --git a/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart b/packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart similarity index 87% rename from packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart rename to packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart index 63d31d65d767..f0ff09fde244 100644 --- a/packages/web_mouse_click_boundary/lib/web_mouse_click_boundary.dart +++ b/packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -library web_mouse_click_boundary; +library web_pointer_interceptor; export 'src/mobile.dart' if (dart.library.html) 'src/web.dart'; diff --git a/packages/web_pointer_interceptor/pubspec.yaml b/packages/web_pointer_interceptor/pubspec.yaml new file mode 100644 index 000000000000..3012bd10dfee --- /dev/null +++ b/packages/web_pointer_interceptor/pubspec.yaml @@ -0,0 +1,16 @@ +name: web_pointer_interceptor +description: A new Flutter package project. +version: 0.8.0 +repository: https://github.com/flutter/packages + +environment: + sdk: ">=2.7.0 <3.0.0" + flutter: ">=1.17.0" + +dependencies: + flutter: + sdk: flutter + +dev_dependencies: + flutter_test: + sdk: flutter diff --git a/packages/web_mouse_click_boundary/test/README.md b/packages/web_pointer_interceptor/test/README.md similarity index 100% rename from packages/web_mouse_click_boundary/test/README.md rename to packages/web_pointer_interceptor/test/README.md From 0420ee76901977b4c88b5d3977fd78b75f29516a Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Mon, 14 Dec 2020 17:41:20 -0800 Subject: [PATCH 10/20] Use the underlying DOM for test, instead of attempting to simulate clicks. --- .../web_pointer_interceptor/example/README.md | 2 +- .../example/integration_test/widget_test.dart | 63 ++++++++----------- .../example/lib/main.dart | 9 ++- 3 files changed, 35 insertions(+), 39 deletions(-) diff --git a/packages/web_pointer_interceptor/example/README.md b/packages/web_pointer_interceptor/example/README.md index 66f70208ba3b..81eeb946aa31 100644 --- a/packages/web_pointer_interceptor/example/README.md +++ b/packages/web_pointer_interceptor/example/README.md @@ -8,6 +8,6 @@ A small example for the PointerInterceptor widget. ## Running tests -`flutter drive --target integration_test/widget_test.dart --driver test_driver/integration_test.dart -d web` +`flutter drive --target integration_test/widget_test.dart --driver test_driver/integration_test.dart --show-web-server-device -d web-server` The command above will run the integration tests for this package. diff --git a/packages/web_pointer_interceptor/example/integration_test/widget_test.dart b/packages/web_pointer_interceptor/example/integration_test/widget_test.dart index 76bd4fc5ed78..9ec445fea5e5 100644 --- a/packages/web_pointer_interceptor/example/integration_test/widget_test.dart +++ b/packages/web_pointer_interceptor/example/integration_test/widget_test.dart @@ -1,3 +1,10 @@ +// Copyright 2019 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// @dart = 2.9 +import 'dart:html' as html; + // Imports the Flutter Driver API. import 'package:flutter/src/widgets/framework.dart'; import 'package:flutter_test/flutter_test.dart'; @@ -9,55 +16,37 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group('Widget', () { - // First, define the Finders and use them to locate widgets from the - // test suite. Note: the Strings provided to the `byValueKey` method must - // be the same as the Strings we used for the Keys in step 1. - final Finder resultKeyFinder = find.byKey(const Key('last-clicked')); - final Finder resultTextFinderNone = find.text('Last click on: none'); - final Finder resultTextFinderHtml = find.text('Last click on: html-element'); - final Finder resultTextFinderButton = find.text('Last click on: clickable-button'); - final Finder resultTextFinderTransparentButton = find.text('Last click on: transparent-button'); - final Finder nonClickableButtonFinder = find.byKey(const Key('transparent-button')); final Finder clickableButtonFinder = find.byKey(const Key('clickable-button')); - testWidgets('starts at "none"', (WidgetTester tester) async { + testWidgets('on wrapped elements, the browser hits the interceptor (and not the background-html-view)', (WidgetTester tester) async { app.main(); await tester.pumpAndSettle(); - expect(resultKeyFinder, findsOneWidget); - expect(resultTextFinderNone, findsOneWidget); + final html.Element element = _getHtmlElementFromFinder(clickableButtonFinder, tester); + expect(element.tagName.toLowerCase(), 'flt-platform-view'); - expect(tester.widget(resultTextFinderNone), tester.widget(resultKeyFinder)); + final html.Element platformViewRoot = element.shadowRoot.getElementById('background-html-view'); + expect(platformViewRoot, isNull); }); - testWidgets('clicking on the clickable button works', (WidgetTester tester) async { + testWidgets('on unwrapped elements, the browser hits the background-html-view', (WidgetTester tester) async { app.main(); await tester.pumpAndSettle(); - await tester.tap(clickableButtonFinder); - - await tester.pumpAndSettle(); - - expect(resultKeyFinder, findsOneWidget); - expect(resultTextFinderButton, findsOneWidget); - - expect(tester.widget(resultTextFinderButton), tester.widget(resultKeyFinder)); + final html.Element element = _getHtmlElementFromFinder(nonClickableButtonFinder, tester); + expect(element.tagName.toLowerCase(), 'flt-platform-view'); + + final html.Element platformViewRoot = element.shadowRoot.getElementById('background-html-view'); + expect(platformViewRoot, isNotNull); }); - - testWidgets('clicks on the transparent button go through', (WidgetTester tester) async { - app.main(); - await tester.pumpAndSettle(); - - await tester.tap(nonClickableButtonFinder); - - await tester.pumpAndSettle(); - - expect(resultKeyFinder, findsOneWidget); - expect(resultTextFinderTransparentButton, findsNothing); - expect(resultTextFinderHtml, findsOneWidget); - - expect(tester.widget(resultTextFinderHtml), tester.widget(resultKeyFinder)); - }, skip: true); // This test should pass, but does not. It finds a "transparent-button" result. }); } + +// This functions locates a widget from a Finder, and asks the browser what's the +// DOM element in the center of the coordinates of the widget. (Returns *which* +// DOM element will handle Mouse interactions first at those coordinates.) +html.Element _getHtmlElementFromFinder(Finder finder, WidgetTester tester) { + final Offset point = tester.getCenter(finder); + return html.document.elementFromPoint(point.dx.toInt(), point.dy.toInt()); +} diff --git a/packages/web_pointer_interceptor/example/lib/main.dart b/packages/web_pointer_interceptor/example/lib/main.dart index 42fff39b4e25..3442250c60ff 100644 --- a/packages/web_pointer_interceptor/example/lib/main.dart +++ b/packages/web_pointer_interceptor/example/lib/main.dart @@ -1,3 +1,7 @@ +// Copyright 2019 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + // ignore: avoid_web_libraries_in_flutter import 'dart:html' as html; @@ -14,7 +18,8 @@ const num _videoHeight = 480; html.Element htmlElement = html.DivElement() ..style.width = '100%' ..style.height = '100%' - ..style.backgroundColor = '#fabada'; + ..style.backgroundColor = '#fabada' + ..id = 'background-html-view'; // See other examples commented out below... @@ -23,6 +28,7 @@ html.Element htmlElement = html.DivElement() // ..style.height = '100%' // ..style.cursor = 'auto' // ..style.backgroundColor = 'black' +// ..id = 'background-html-view' // ..src = 'https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4' // ..poster = 'https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217' // ..controls = true; @@ -30,6 +36,7 @@ html.Element htmlElement = html.DivElement() // html.Element htmlElement = html.IFrameElement() // ..width = '100%' // ..height = '100%' +// ..id = 'background-html-view' // ..src = 'https://www.youtube.com/embed/IyFZznAk69U' // ..style.border = 'none'; From 895f6bd54f06be45545500d654eebd39c3d93e9d Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Mon, 14 Dec 2020 17:43:51 -0800 Subject: [PATCH 11/20] dartfmt -w . --- .../example/integration_test/widget_test.dart | 30 ++++++++++++------- .../example/lib/main.dart | 21 +++++++++---- .../lib/src/mobile.dart | 6 +++- .../web_pointer_interceptor/lib/src/web.dart | 13 +++++--- .../lib/web_pointer_interceptor.dart | 3 +- 5 files changed, 51 insertions(+), 22 deletions(-) diff --git a/packages/web_pointer_interceptor/example/integration_test/widget_test.dart b/packages/web_pointer_interceptor/example/integration_test/widget_test.dart index 9ec445fea5e5..505aaca822da 100644 --- a/packages/web_pointer_interceptor/example/integration_test/widget_test.dart +++ b/packages/web_pointer_interceptor/example/integration_test/widget_test.dart @@ -16,28 +16,38 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group('Widget', () { - final Finder nonClickableButtonFinder = find.byKey(const Key('transparent-button')); - final Finder clickableButtonFinder = find.byKey(const Key('clickable-button')); - - testWidgets('on wrapped elements, the browser hits the interceptor (and not the background-html-view)', (WidgetTester tester) async { + final Finder nonClickableButtonFinder = + find.byKey(const Key('transparent-button')); + final Finder clickableButtonFinder = + find.byKey(const Key('clickable-button')); + + testWidgets( + 'on wrapped elements, the browser hits the interceptor (and not the background-html-view)', + (WidgetTester tester) async { app.main(); await tester.pumpAndSettle(); - final html.Element element = _getHtmlElementFromFinder(clickableButtonFinder, tester); + final html.Element element = + _getHtmlElementFromFinder(clickableButtonFinder, tester); expect(element.tagName.toLowerCase(), 'flt-platform-view'); - final html.Element platformViewRoot = element.shadowRoot.getElementById('background-html-view'); + final html.Element platformViewRoot = + element.shadowRoot.getElementById('background-html-view'); expect(platformViewRoot, isNull); }); - testWidgets('on unwrapped elements, the browser hits the background-html-view', (WidgetTester tester) async { + testWidgets( + 'on unwrapped elements, the browser hits the background-html-view', + (WidgetTester tester) async { app.main(); await tester.pumpAndSettle(); - final html.Element element = _getHtmlElementFromFinder(nonClickableButtonFinder, tester); + final html.Element element = + _getHtmlElementFromFinder(nonClickableButtonFinder, tester); expect(element.tagName.toLowerCase(), 'flt-platform-view'); - - final html.Element platformViewRoot = element.shadowRoot.getElementById('background-html-view'); + + final html.Element platformViewRoot = + element.shadowRoot.getElementById('background-html-view'); expect(platformViewRoot, isNotNull); }); }); diff --git a/packages/web_pointer_interceptor/example/lib/main.dart b/packages/web_pointer_interceptor/example/lib/main.dart index 3442250c60ff..d62e3fd30b67 100644 --- a/packages/web_pointer_interceptor/example/lib/main.dart +++ b/packages/web_pointer_interceptor/example/lib/main.dart @@ -88,7 +88,10 @@ class _MyHomePageState extends State { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - Text('Last click on: $_lastClick', key: const Key('last-clicked'),), + Text( + 'Last click on: $_lastClick', + key: const Key('last-clicked'), + ), Container( color: Colors.black, width: _videoWidth, @@ -97,7 +100,9 @@ class _MyHomePageState extends State { alignment: Alignment.center, children: [ HtmlElement( - onClick: () { _clickedOn('html-element'); }, + onClick: () { + _clickedOn('html-element'); + }, ), Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, @@ -105,13 +110,17 @@ class _MyHomePageState extends State { RaisedButton( key: const Key('transparent-button'), child: const Text('Never calls onPressed'), - onPressed: () { _clickedOn('transparent-button'); }, + onPressed: () { + _clickedOn('transparent-button'); + }, ), PointerInterceptor( child: RaisedButton( key: const Key('clickable-button'), child: const Text('Works As Expected'), - onPressed: () { _clickedOn('clickable-button'); }, + onPressed: () { + _clickedOn('clickable-button'); + }, ), ), ], @@ -136,7 +145,9 @@ class HtmlElement extends StatelessWidget { @override Widget build(BuildContext context) { - htmlElement.onClick.listen((_) { onClick(); }); + htmlElement.onClick.listen((_) { + onClick(); + }); return const HtmlElementView( viewType: _htmlElementViewType, diff --git a/packages/web_pointer_interceptor/lib/src/mobile.dart b/packages/web_pointer_interceptor/lib/src/mobile.dart index 142bac5046ba..b658635a13ac 100644 --- a/packages/web_pointer_interceptor/lib/src/mobile.dart +++ b/packages/web_pointer_interceptor/lib/src/mobile.dart @@ -8,7 +8,11 @@ import 'package:flutter/widgets.dart'; /// A Widget that prevents clicks from being swallowed by HtmlViewElements. class PointerInterceptor extends StatelessWidget { /// Create a `PointerInterceptor` around a `child`. - const PointerInterceptor({@required this.child, this.debug = false, Key key}) : super(key: key); + const PointerInterceptor({ + @required this.child, + this.debug = false, + Key key, + }) : super(key: key); /// The Widget that is being wrapped by this PointerInterceptor. /// It needs to be properly sized (like a Button). diff --git a/packages/web_pointer_interceptor/lib/src/web.dart b/packages/web_pointer_interceptor/lib/src/web.dart index 0513b72e65a2..354ca8960f58 100644 --- a/packages/web_pointer_interceptor/lib/src/web.dart +++ b/packages/web_pointer_interceptor/lib/src/web.dart @@ -19,8 +19,7 @@ String _getViewType({bool debug = false}) { void _registerWrapper({bool debug = false}) { final String viewType = _getViewType(debug: debug); - ui.platformViewRegistry.registerViewFactory(viewType, - (int viewId) { + ui.platformViewRegistry.registerViewFactory(viewType, (int viewId) { final html.Element wrapper = html.DivElement(); if (debug) { wrapper.style.backgroundColor = 'rgba(255, 0, 0, .5)'; @@ -34,7 +33,11 @@ void _registerWrapper({bool debug = false}) { class PointerInterceptor extends StatelessWidget { /// Creates a PointerInterceptor for the web. /// If the underlying viewFactories are not registered yet, it registers them. - PointerInterceptor({@required this.child, this.debug = false, Key key}) : super(key: key) { + PointerInterceptor({ + @required this.child, + this.debug = false, + Key key, + }) : super(key: key) { if (!_registered) { _register(); } @@ -68,7 +71,9 @@ class PointerInterceptor extends StatelessWidget { return Stack( children: [ Positioned.fill( - child: HtmlElementView(viewType: viewType,), + child: HtmlElementView( + viewType: viewType, + ), ), child, ], diff --git a/packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart b/packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart index f0ff09fde244..aa90dc10d52e 100644 --- a/packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart +++ b/packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart @@ -4,5 +4,4 @@ library web_pointer_interceptor; -export 'src/mobile.dart' - if (dart.library.html) 'src/web.dart'; +export 'src/mobile.dart' if (dart.library.html) 'src/web.dart'; From 843664dc187ab3f0f0d99abb082cc12bb0c40f4e Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Mon, 14 Dec 2020 17:59:19 -0800 Subject: [PATCH 12/20] Appease analyzer --- .../web_pointer_interceptor/example/lib/src/shim/dart_ui.dart | 2 +- packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui.dart b/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui.dart index 3a58e6cf4b0a..442115ebf5f0 100644 --- a/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui.dart +++ b/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui.dart @@ -5,6 +5,6 @@ /// This file shims dart:ui in web-only scenarios, getting rid of the need to /// suppress analyzer warnings. -// TODO(flutter/flutter#55000) Remove this file once web-only dart:ui APIs +// TODO(dit): flutter/flutter#55000 Remove this file once web-only dart:ui APIs // are exposed from a dedicated place. export 'dart_ui_fake.dart' if (dart.library.html) 'dart_ui_real.dart'; diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart b/packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart index 3a58e6cf4b0a..442115ebf5f0 100644 --- a/packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart +++ b/packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart @@ -5,6 +5,6 @@ /// This file shims dart:ui in web-only scenarios, getting rid of the need to /// suppress analyzer warnings. -// TODO(flutter/flutter#55000) Remove this file once web-only dart:ui APIs +// TODO(dit): flutter/flutter#55000 Remove this file once web-only dart:ui APIs // are exposed from a dedicated place. export 'dart_ui_fake.dart' if (dart.library.html) 'dart_ui_real.dart'; From e75578e5e32276ad3a7c3a012d3381451321e327 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Mon, 14 Dec 2020 18:13:50 -0800 Subject: [PATCH 13/20] Appease the test+format check. --- .../test/tests_exist_elsewhere_test.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart diff --git a/packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart b/packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart new file mode 100644 index 000000000000..c67322d80a18 --- /dev/null +++ b/packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart @@ -0,0 +1,12 @@ +import 'package:flutter_test/flutter_test.dart'; + +void main() { + test('Tell the user where to find the real tests', () { + print('---'); + print('This package uses integration_test for its tests.'); + print('See `example/README.md` for more info.'); + print('---'); + + expect('Done', isNotNull); + }); +} From c333b7fc2b86254bc8595fb314f2c1569637a915 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Tue, 15 Dec 2020 17:26:24 -0800 Subject: [PATCH 14/20] Address PR feedback, add Drawer to example. --- packages/web_pointer_interceptor/README.md | 92 +++++++++++++----- .../docs/affected-areas.png | Bin 0 -> 15011 bytes .../docs/fixed-areas.png | Bin 0 -> 17538 bytes .../web_pointer_interceptor/example/README.md | 6 +- .../example/lib/main.dart | 22 +++++ .../lib/src/mobile.dart | 15 ++- .../web_pointer_interceptor/lib/src/web.dart | 36 ++++--- .../test/tests_exist_elsewhere_test.dart | 2 - 8 files changed, 123 insertions(+), 50 deletions(-) create mode 100644 packages/web_pointer_interceptor/docs/affected-areas.png create mode 100644 packages/web_pointer_interceptor/docs/fixed-areas.png diff --git a/packages/web_pointer_interceptor/README.md b/packages/web_pointer_interceptor/README.md index 3f6a3010e10b..7e28c304aeff 100644 --- a/packages/web_pointer_interceptor/README.md +++ b/packages/web_pointer_interceptor/README.md @@ -1,29 +1,73 @@ # web_pointer_interceptor -A small Flutter widget to prevent clicks (in web) from being intercepted by underlying HtmlElement views. +`PointerInterceptor` is a widget that prevents mouse events (in web) from being captured by an underlying [`HtmlElementView`](https://api.flutter.dev/flutter/widgets/HtmlElementView-class.html). + +## What is the problem? + +When overlaying Flutter widgets on top of `HtmlElementView` widgets that respond to mouse gestures (handle clicks, for example), the clicks will be consumed by the `HtmlElementView`, and not relayed to Flutter. + +The result is that Flutter widget's `onTap` (and other) handlers won't fire as expected, but they'll affect the underlying webview. + +
+ +![In the dashed areas, clicks won't work](docs/affected-areas.png) + +_In the dashed areas, clicks won't work as expected._ +
+ +## How does this work? + +`PointerInterceptor` creates a platform view consisting of an empty HTML element. The element has the size of its `child` widget, and is inserted in the layer tree _behind_ its child in paint order. + +This empty platform view doesn't do anything with mouse events, other than preventing them from reaching other platform views underneath it. + +This gives an opportunity to the Flutter framework to handle the click, as expected: + +
+ +![The PointerInterceptor renders between the flutter element, and the platform view](docs/fixed-areas.png) + +_Each `PointerInterceptor` (green) renders between Flutter widgets and the underlying `HtmlElementView`. Clicks work as expected._ +
+ ## How to use -Wrap your button element in a `PointerInterceptor` widget, like so: - -```dart -PointerInterceptor( - child: RaisedButton(...), -) -``` - -It can also be used as a "layout" element to wrap a bunch of other elements; for example, as the parent of a `Drawer`: - -```dart -Scaffold( - ... - drawer: PointerInterceptor( - child: Drawer( - child: ... - ), - ), - ... -) -``` - -The `PointerInterceptor` widget has a `debug` property, that will render it visibly on the screen. This is useful to see what the widget is actually covering when used as a layout element. +Some common scenarios where this widget may come in handy: + +* [FAB](https://api.flutter.dev/flutter/material/FloatingActionButton-class.html) unclickable in an app that renders a full-screen background Map +* Custom Play/Pause buttons on top of a video element don't work +* Drawer contents not interactive when it overlaps an iframe element +* ... + +All the cases above have in common that they attempt to render Flutter widgets *on top* of platform views that handle pointer events. + +There's two ways that the `PointerInterceptor` widget can be used to solve the problems above: + +1. Wrapping your button element directly (FAB, Custom Play/Pause button...): + + ```dart + PointerInterceptor( + child: RaisedButton(...), + ) + ``` + +2. As a root container for a "layout" element, wrapping a bunch of other elements (like a Drawer): + + ```dart + Scaffold( + ... + drawer: PointerInterceptor( + child: Drawer( + child: ... + ), + ), + ... + ) + ``` + +### `debug` + +The `PointerInterceptor` widget has a `debug` property, that will render it visibly on the screen (similar to the images above). + +This may be useful to see what the widget is actually covering when used as a layout element. diff --git a/packages/web_pointer_interceptor/docs/affected-areas.png b/packages/web_pointer_interceptor/docs/affected-areas.png new file mode 100644 index 0000000000000000000000000000000000000000..40592db6d2b6a2e45c4d0653c39f6ac184b63298 GIT binary patch literal 15011 zcmd_RRaE6n)GdlTY~0O!@cM2 zjFC!Kl2w(Jj2e|$tL6+>l$St8z()WB14EXQ6jcTT0|$KBOK>n>dnopWk^c_nLUKZ2 zV0E#GZ-&rc=Uk?mQf6{;VDw)$92j`0B^cC~1^!j=zX})_L>|QdTmc8^ow)Edk zCpvFwFfbl$DN!L+5Abte_^h95$sc9aC%%_cU6%yGlu#y#xNcetjy>S2Gree^V@MaY zdo8hhrCbp_-AZqC)h*17KM+vh>ZRcVP)EArT}Zv>q)Hwyv_B5pAG6CJ_0(K7G-}jb z?Ua4D+AkRoeJ*n@bG)~(Jr2!{SmyHJXdxncz|d&%4g4mn|2y#)0*;FC29oE&nS}T! zNT}CZl8FJ)6mMn({`1u$%iE8~veA}AQ-n(5`vdr@091#g^)!Lb#8!sF1g8R=Lq_eKq&$|NpJIfXb1*-G(r~7tewvCI#ee+aL#I3v9i^Hyxpsr z`|vk}AuMN0{B8lJK+UqFXf{P@O#{jaIba*l{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VXUkhanuj4BMDQ6bV zqc;4FaTSz?4iFp8f*=??O0nBp2r~!f#xR1a&#E(=m>#zhvC6TV_HP>_7SQ z*m;Vi;HlO-0(*MUKRI0W#qg})m`_IGj;jfNgUUlBTUHn}s@XUN1AwS;IO1SIB;~Ft z`F60ZM#zwBfVX|_~rB__KoVK6&McLkwfT;|1I zo^YtvHV9$2#0Wx?2(BJZ6wk|w$y)Vwu3+yQoNtZm;t{MbbE-}z#ivf=>q zV7TLo@#6H^zv_uRuyK#;x>%CH|H1S22i9d0{whFTcY%qT<~gmbELWMPU|4o)pHXzb z$`^;ci4KkuSwSgAzc?OHG=#Xh^JW!Mdo(zmWsmJ8FFn8tfcOF)zkv!JE}{Yz+rH<6Ik5w#d3)#Ks)L!a@EInY6=g-*_|`D(=VI{??ZNf-p`b z;JUXX@6M(8v=F}o{S$^ud#a=9A-?1*2@)5%B8xyYT&yn~A`b0ltBN+_`(-+P5|+b6 z^pt)f6&Cth>)#Q;3yLo=^?Int{zaCB{)$E^K$k%6zm}#g5wm%`&mD+8C7qq?qQ;JH7$%|GC8wCC@l$72v literal 0 HcmV?d00001 diff --git a/packages/web_pointer_interceptor/docs/fixed-areas.png b/packages/web_pointer_interceptor/docs/fixed-areas.png new file mode 100644 index 0000000000000000000000000000000000000000..489d376660b481246cf2802eac5a26db0a882888 GIT binary patch literal 17538 zcmc$`g;yL+@GiUyfyD_B92N-fB)Gdsf5^)N=-$f+0APp(;KO?f_&M?=A|MtBT}p|_Uy^=;En0-vSS?>QU8kb&x9`_X$dphvn_+jpq9touBzz=1 zihC-DA)6uFBsD7D`9Z?69MylO-_5=o{Xa1K_yPRp$~1K;8Op@V+5*$%L^yTaMU}3c z^!#c#fU}3yaZ5U-(?wavK>Tl7-a`U*snlPFhIj!CZNU90e23#59Ux$zOsTg>3WUXHA}^Xf;QjaMl6 z!HdDSL^LH^{Q8nt%+Ek1u*TuPNAj`&h#By4YO@Rjd&eLACZTxj;tbQ*lXgCy6Emg{ z6}Yg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T0oo z`RCFH0iUqeh6bIvUGseuzYkUp03^PBd&;gKrn?c=} z$9{c1#|+7{k|Xy zO9SaJ#S&0anFjEW0gnMx=5Qy4`8Ukw?c292b2pRxVugR(wrvSNjF8D3&YWOT6x+b) z2uKG$vAci~TRLg7yuFDV=yI?)2~fsa5LgTLZDrvL-~mv?^r9!L19^}hogeEK&>?gI zonQ?FfMVAL(qXLw7KUv7f(C#Daj1t(Oj%HdnYKU+IpVNg3-cLg6|ik;-$fZ{6=2kp z5z{vqNhhi8TF}J-FF5E8@%AZ*00X8vSSJxDyDI=>JE+M0f$&{?aHy*?Y3;Y5*(tSaeLa@Hm95siMIjrUB?I0|gq%WE#kFU|C?K$NI)VI&@F; zGb|X}!C@fEz@anfc;Ui@eIjQpk3OkwWM>-a20qZ*0DptQ<3N^!sf2wxF;F@Icseba zfuh}CI%dtIzZx|8jRta50|q>DwBn7}Mg#rTfB}#GYS8328pu%%^lQxn3ogbP4HylK zObwv__I0ro68Cwx1(~tqVw}-{(ZI;n0Jg{b>iPv9eJ#}FGa4`&82K77YaS!N4vhpx z14E(#10F-7c2lU)z{uBt0gsViheiUUfg#a=0goY3yD8LYVB~ASfXB$MLnDFFz>sLb zfX9%i-4tpxF!D8Ez+>dsp^?C7U`RAzz+*_%ZVELT82K77;4$*+&`4l3FeDl<;4vg> zH-#DvjC>6k@EG}ZXe2Ni7!nN_@E8)cn?j8SM!p9AKiV Docs > Testing & debugging > Integration testing](https://flutter.dev/docs/testing/integration-tests). diff --git a/packages/web_pointer_interceptor/example/lib/main.dart b/packages/web_pointer_interceptor/example/lib/main.dart index d62e3fd30b67..45d2af041592 100644 --- a/packages/web_pointer_interceptor/example/lib/main.dart +++ b/packages/web_pointer_interceptor/example/lib/main.dart @@ -131,6 +131,28 @@ class _MyHomePageState extends State { ], ), ), + drawer: Drawer( + child: PointerInterceptor( + // debug: true, // Enable this to "see" the interceptor covering the column. + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ListTile( + title: const Text('Item 1'), + onTap: () { + _clickedOn('drawer-item-1'); + }, + ), + ListTile( + title: const Text('Item 2'), + onTap: () { + _clickedOn('drawer-item-2'); + }, + ), + ], + ), + ), + ), ); } } diff --git a/packages/web_pointer_interceptor/lib/src/mobile.dart b/packages/web_pointer_interceptor/lib/src/mobile.dart index b658635a13ac..ef4ef6ad899a 100644 --- a/packages/web_pointer_interceptor/lib/src/mobile.dart +++ b/packages/web_pointer_interceptor/lib/src/mobile.dart @@ -4,23 +4,22 @@ import 'package:flutter/widgets.dart'; -/// The mobile implementation of the PointerInterceptor widget. -/// A Widget that prevents clicks from being swallowed by HtmlViewElements. +/// A [Widget] that prevents clicks from being swallowed by [HtmlElementView]s. class PointerInterceptor extends StatelessWidget { - /// Create a `PointerInterceptor` around a `child`. + /// Create a `PointerInterceptor` wrapping a `child`. const PointerInterceptor({ @required this.child, this.debug = false, Key key, }) : super(key: key); - /// The Widget that is being wrapped by this PointerInterceptor. - /// It needs to be properly sized (like a Button). + /// The `Widget` that is being wrapped by this `PointerInterceptor`. final Widget child; - /// Render the view with a semi-transparent red background, for debug purposes. - /// This is useful when rendering this as a "layout" widget, like the root element - /// of a sidebar. + /// When true, the widget renders with a semi-transparent red background, for debug purposes. + /// + /// This is useful when rendering this as a "layout" widget, like the root child + /// of a `Drawer`. final bool debug; @override diff --git a/packages/web_pointer_interceptor/lib/src/web.dart b/packages/web_pointer_interceptor/lib/src/web.dart index 354ca8960f58..c6183839936b 100644 --- a/packages/web_pointer_interceptor/lib/src/web.dart +++ b/packages/web_pointer_interceptor/lib/src/web.dart @@ -12,27 +12,33 @@ import 'shim/dart_ui.dart' as ui; const String _viewType = '__webPointerInterceptorViewType__'; const String _debug = 'debug__'; +// Computes a "view type" for different configurations of the widget. String _getViewType({bool debug = false}) { return debug ? _viewType + _debug : _viewType; } -void _registerWrapper({bool debug = false}) { +// Registers a viewFactory for this widget. +void _registerFactory({bool debug = false}) { final String viewType = _getViewType(debug: debug); - ui.platformViewRegistry.registerViewFactory(viewType, (int viewId) { - final html.Element wrapper = html.DivElement(); + final html.Element htmlElement = html.DivElement() + ..style.top = '0' + ..style.right = '0' + ..style.bottom = '0' + ..style.left = '0' + ..style.position = 'relative'; if (debug) { - wrapper.style.backgroundColor = 'rgba(255, 0, 0, .5)'; + htmlElement.style.backgroundColor = 'rgba(255, 0, 0, .5)'; } - return wrapper; + return htmlElement; }); } -/// The mobile implementation of the PointerInterceptor widget. -/// A Widget that prevents clicks from being swallowed by HtmlViewElements. +/// The web implementation of the `PointerInterceptor` widget. +/// +/// A `Widget` that prevents clicks from being swallowed by [HtmlElementView]s. class PointerInterceptor extends StatelessWidget { /// Creates a PointerInterceptor for the web. - /// If the underlying viewFactories are not registered yet, it registers them. PointerInterceptor({ @required this.child, this.debug = false, @@ -43,24 +49,24 @@ class PointerInterceptor extends StatelessWidget { } } - /// The Widget that is being wrapped by this PointerInterceptor. - /// It needs to be properly sized (like a Button). + /// The `Widget` that is being wrapped by this `PointerInterceptor`. final Widget child; - /// Render the view with a semi-transparent red background, for debug purposes. + /// When true, the widget renders with a semi-transparent red background, for debug purposes. + /// /// This is useful when rendering this as a "layout" widget, like the root child - /// of a sidebar. + /// of a [Drawer]. final bool debug; // Keeps track if this widget has already registered its view factories or not. static bool _registered = false; - // Registers the view factories for the boundary widgets. + // Registers the view factories for the interceptor widgets. static void _register() { assert(!_registered); - _registerWrapper(); - _registerWrapper(debug: true); + _registerFactory(); + _registerFactory(debug: true); _registered = true; } diff --git a/packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart b/packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart index c67322d80a18..334f52186d9d 100644 --- a/packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart +++ b/packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart @@ -6,7 +6,5 @@ void main() { print('This package uses integration_test for its tests.'); print('See `example/README.md` for more info.'); print('---'); - - expect('Done', isNotNull); }); } From 575d243d61d13827a8e4a3d42606b008fd91783c Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Tue, 15 Dec 2020 17:33:16 -0800 Subject: [PATCH 15/20] Update example with cursor:auto --- packages/web_pointer_interceptor/example/lib/main.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web_pointer_interceptor/example/lib/main.dart b/packages/web_pointer_interceptor/example/lib/main.dart index 45d2af041592..6888b9299ef4 100644 --- a/packages/web_pointer_interceptor/example/lib/main.dart +++ b/packages/web_pointer_interceptor/example/lib/main.dart @@ -19,6 +19,7 @@ html.Element htmlElement = html.DivElement() ..style.width = '100%' ..style.height = '100%' ..style.backgroundColor = '#fabada' + ..style.cursor = 'auto' ..id = 'background-html-view'; // See other examples commented out below... From d542ae9506a37a8e50c95c02f6d7075ea824bb69 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Tue, 15 Dec 2020 17:43:12 -0800 Subject: [PATCH 16/20] Migrate package lib to null-safety. --- packages/web_pointer_interceptor/README.md | 4 ++-- .../{docs => doc/img}/affected-areas.png | Bin .../{docs => doc/img}/fixed-areas.png | Bin .../web_pointer_interceptor/lib/src/mobile.dart | 4 ++-- .../lib/src/shim/dart_ui_fake.dart | 2 +- packages/web_pointer_interceptor/lib/src/web.dart | 4 ++-- packages/web_pointer_interceptor/pubspec.yaml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) rename packages/web_pointer_interceptor/{docs => doc/img}/affected-areas.png (100%) rename packages/web_pointer_interceptor/{docs => doc/img}/fixed-areas.png (100%) diff --git a/packages/web_pointer_interceptor/README.md b/packages/web_pointer_interceptor/README.md index 7e28c304aeff..2dcb47dbedbd 100644 --- a/packages/web_pointer_interceptor/README.md +++ b/packages/web_pointer_interceptor/README.md @@ -10,7 +10,7 @@ The result is that Flutter widget's `onTap` (and other) handlers won't fire as e

-![In the dashed areas, clicks won't work](docs/affected-areas.png) +![In the dashed areas, clicks won't work](doc/img/affected-areas.png) _In the dashed areas, clicks won't work as expected._
@@ -25,7 +25,7 @@ This gives an opportunity to the Flutter framework to handle the click, as expec
-![The PointerInterceptor renders between the flutter element, and the platform view](docs/fixed-areas.png) +![The PointerInterceptor renders between the flutter element, and the platform view](doc/img/fixed-areas.png) _Each `PointerInterceptor` (green) renders between Flutter widgets and the underlying `HtmlElementView`. Clicks work as expected._
diff --git a/packages/web_pointer_interceptor/docs/affected-areas.png b/packages/web_pointer_interceptor/doc/img/affected-areas.png similarity index 100% rename from packages/web_pointer_interceptor/docs/affected-areas.png rename to packages/web_pointer_interceptor/doc/img/affected-areas.png diff --git a/packages/web_pointer_interceptor/docs/fixed-areas.png b/packages/web_pointer_interceptor/doc/img/fixed-areas.png similarity index 100% rename from packages/web_pointer_interceptor/docs/fixed-areas.png rename to packages/web_pointer_interceptor/doc/img/fixed-areas.png diff --git a/packages/web_pointer_interceptor/lib/src/mobile.dart b/packages/web_pointer_interceptor/lib/src/mobile.dart index ef4ef6ad899a..1f561acd16b5 100644 --- a/packages/web_pointer_interceptor/lib/src/mobile.dart +++ b/packages/web_pointer_interceptor/lib/src/mobile.dart @@ -8,9 +8,9 @@ import 'package:flutter/widgets.dart'; class PointerInterceptor extends StatelessWidget { /// Create a `PointerInterceptor` wrapping a `child`. const PointerInterceptor({ - @required this.child, + required this.child, this.debug = false, - Key key, + Key? key, }) : super(key: key); /// The `Widget` that is being wrapped by this `PointerInterceptor`. diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart b/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart index ccf4dc3c19b3..5bf3a919f781 100644 --- a/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart +++ b/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart @@ -24,7 +24,7 @@ class webOnlyAssetManager { /// Shim for getAssetUrl. /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L45 static String getAssetUrl(String asset) { - return null; + return ''; } } diff --git a/packages/web_pointer_interceptor/lib/src/web.dart b/packages/web_pointer_interceptor/lib/src/web.dart index c6183839936b..bdbbc8f5f308 100644 --- a/packages/web_pointer_interceptor/lib/src/web.dart +++ b/packages/web_pointer_interceptor/lib/src/web.dart @@ -40,9 +40,9 @@ void _registerFactory({bool debug = false}) { class PointerInterceptor extends StatelessWidget { /// Creates a PointerInterceptor for the web. PointerInterceptor({ - @required this.child, + required this.child, this.debug = false, - Key key, + Key? key, }) : super(key: key) { if (!_registered) { _register(); diff --git a/packages/web_pointer_interceptor/pubspec.yaml b/packages/web_pointer_interceptor/pubspec.yaml index 3012bd10dfee..b9520bce676a 100644 --- a/packages/web_pointer_interceptor/pubspec.yaml +++ b/packages/web_pointer_interceptor/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.8.0 repository: https://github.com/flutter/packages environment: - sdk: ">=2.7.0 <3.0.0" + sdk: ">=2.12.0-0 <3.0.0" flutter: ">=1.17.0" dependencies: From 963c5f1d6dd0373855cd2b1406f2a07fa79b5ad7 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Tue, 15 Dec 2020 18:34:14 -0800 Subject: [PATCH 17/20] Revert "Migrate package lib to null-safety." This reverts commit d542ae9506a37a8e50c95c02f6d7075ea824bb69. --- packages/web_pointer_interceptor/README.md | 4 ++-- .../{doc/img => docs}/affected-areas.png | Bin .../{doc/img => docs}/fixed-areas.png | Bin .../web_pointer_interceptor/lib/src/mobile.dart | 4 ++-- .../lib/src/shim/dart_ui_fake.dart | 2 +- packages/web_pointer_interceptor/lib/src/web.dart | 4 ++-- packages/web_pointer_interceptor/pubspec.yaml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) rename packages/web_pointer_interceptor/{doc/img => docs}/affected-areas.png (100%) rename packages/web_pointer_interceptor/{doc/img => docs}/fixed-areas.png (100%) diff --git a/packages/web_pointer_interceptor/README.md b/packages/web_pointer_interceptor/README.md index 2dcb47dbedbd..7e28c304aeff 100644 --- a/packages/web_pointer_interceptor/README.md +++ b/packages/web_pointer_interceptor/README.md @@ -10,7 +10,7 @@ The result is that Flutter widget's `onTap` (and other) handlers won't fire as e
-![In the dashed areas, clicks won't work](doc/img/affected-areas.png) +![In the dashed areas, clicks won't work](docs/affected-areas.png) _In the dashed areas, clicks won't work as expected._
@@ -25,7 +25,7 @@ This gives an opportunity to the Flutter framework to handle the click, as expec
-![The PointerInterceptor renders between the flutter element, and the platform view](doc/img/fixed-areas.png) +![The PointerInterceptor renders between the flutter element, and the platform view](docs/fixed-areas.png) _Each `PointerInterceptor` (green) renders between Flutter widgets and the underlying `HtmlElementView`. Clicks work as expected._
diff --git a/packages/web_pointer_interceptor/doc/img/affected-areas.png b/packages/web_pointer_interceptor/docs/affected-areas.png similarity index 100% rename from packages/web_pointer_interceptor/doc/img/affected-areas.png rename to packages/web_pointer_interceptor/docs/affected-areas.png diff --git a/packages/web_pointer_interceptor/doc/img/fixed-areas.png b/packages/web_pointer_interceptor/docs/fixed-areas.png similarity index 100% rename from packages/web_pointer_interceptor/doc/img/fixed-areas.png rename to packages/web_pointer_interceptor/docs/fixed-areas.png diff --git a/packages/web_pointer_interceptor/lib/src/mobile.dart b/packages/web_pointer_interceptor/lib/src/mobile.dart index 1f561acd16b5..ef4ef6ad899a 100644 --- a/packages/web_pointer_interceptor/lib/src/mobile.dart +++ b/packages/web_pointer_interceptor/lib/src/mobile.dart @@ -8,9 +8,9 @@ import 'package:flutter/widgets.dart'; class PointerInterceptor extends StatelessWidget { /// Create a `PointerInterceptor` wrapping a `child`. const PointerInterceptor({ - required this.child, + @required this.child, this.debug = false, - Key? key, + Key key, }) : super(key: key); /// The `Widget` that is being wrapped by this `PointerInterceptor`. diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart b/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart index 5bf3a919f781..ccf4dc3c19b3 100644 --- a/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart +++ b/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart @@ -24,7 +24,7 @@ class webOnlyAssetManager { /// Shim for getAssetUrl. /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L45 static String getAssetUrl(String asset) { - return ''; + return null; } } diff --git a/packages/web_pointer_interceptor/lib/src/web.dart b/packages/web_pointer_interceptor/lib/src/web.dart index bdbbc8f5f308..c6183839936b 100644 --- a/packages/web_pointer_interceptor/lib/src/web.dart +++ b/packages/web_pointer_interceptor/lib/src/web.dart @@ -40,9 +40,9 @@ void _registerFactory({bool debug = false}) { class PointerInterceptor extends StatelessWidget { /// Creates a PointerInterceptor for the web. PointerInterceptor({ - required this.child, + @required this.child, this.debug = false, - Key? key, + Key key, }) : super(key: key) { if (!_registered) { _register(); diff --git a/packages/web_pointer_interceptor/pubspec.yaml b/packages/web_pointer_interceptor/pubspec.yaml index b9520bce676a..3012bd10dfee 100644 --- a/packages/web_pointer_interceptor/pubspec.yaml +++ b/packages/web_pointer_interceptor/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.8.0 repository: https://github.com/flutter/packages environment: - sdk: ">=2.12.0-0 <3.0.0" + sdk: ">=2.7.0 <3.0.0" flutter: ">=1.17.0" dependencies: From 471ac97dac652b8bb9d47bf21b5a466e4e214f03 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Tue, 15 Dec 2020 18:36:54 -0800 Subject: [PATCH 18/20] Rename docs to doc, and tuck images under doc/img --- packages/web_pointer_interceptor/README.md | 4 ++-- .../{docs => doc/img}/affected-areas.png | Bin .../{docs => doc/img}/fixed-areas.png | Bin 3 files changed, 2 insertions(+), 2 deletions(-) rename packages/web_pointer_interceptor/{docs => doc/img}/affected-areas.png (100%) rename packages/web_pointer_interceptor/{docs => doc/img}/fixed-areas.png (100%) diff --git a/packages/web_pointer_interceptor/README.md b/packages/web_pointer_interceptor/README.md index 7e28c304aeff..2dcb47dbedbd 100644 --- a/packages/web_pointer_interceptor/README.md +++ b/packages/web_pointer_interceptor/README.md @@ -10,7 +10,7 @@ The result is that Flutter widget's `onTap` (and other) handlers won't fire as e
-![In the dashed areas, clicks won't work](docs/affected-areas.png) +![In the dashed areas, clicks won't work](doc/img/affected-areas.png) _In the dashed areas, clicks won't work as expected._
@@ -25,7 +25,7 @@ This gives an opportunity to the Flutter framework to handle the click, as expec
-![The PointerInterceptor renders between the flutter element, and the platform view](docs/fixed-areas.png) +![The PointerInterceptor renders between the flutter element, and the platform view](doc/img/fixed-areas.png) _Each `PointerInterceptor` (green) renders between Flutter widgets and the underlying `HtmlElementView`. Clicks work as expected._
diff --git a/packages/web_pointer_interceptor/docs/affected-areas.png b/packages/web_pointer_interceptor/doc/img/affected-areas.png similarity index 100% rename from packages/web_pointer_interceptor/docs/affected-areas.png rename to packages/web_pointer_interceptor/doc/img/affected-areas.png diff --git a/packages/web_pointer_interceptor/docs/fixed-areas.png b/packages/web_pointer_interceptor/doc/img/fixed-areas.png similarity index 100% rename from packages/web_pointer_interceptor/docs/fixed-areas.png rename to packages/web_pointer_interceptor/doc/img/fixed-areas.png From 6adde6fe71ccf556cebd5bd22a2d003e4ca103d0 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Wed, 16 Dec 2020 12:46:49 -0800 Subject: [PATCH 19/20] Rename package to pointer_interceptor. --- .../.gitignore | 0 .../.metadata | 0 .../CHANGELOG.md | 0 .../LICENSE | 0 .../README.md | 4 ++- .../doc/img/affected-areas.png | Bin .../doc/img/fixed-areas.png | Bin .../example/.gitignore | 0 .../example/.metadata | 0 .../example/README.md | 2 +- .../example/android/.gitignore | 0 .../example/android/app/build.gradle | 0 .../android/app/src/debug/AndroidManifest.xml | 0 .../android/app/src/main/AndroidManifest.xml | 0 .../com/example/example/MainActivity.kt | 0 .../res/drawable-v21/launch_background.xml | 0 .../main/res/drawable/launch_background.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../app/src/main/res/values-night/styles.xml | 0 .../app/src/main/res/values/styles.xml | 0 .../app/src/profile/AndroidManifest.xml | 0 .../example/android/build.gradle | 0 .../example/android/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.properties | 0 .../example/android/settings.gradle | 0 .../example/integration_test/widget_test.dart | 2 +- .../example/ios/.gitignore | 0 .../ios/Flutter/AppFrameworkInfo.plist | 0 .../example/ios/Flutter/Debug.xcconfig | 0 .../example/ios/Flutter/Release.xcconfig | 0 .../ios/Runner.xcodeproj/project.pbxproj | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../xcshareddata/xcschemes/Runner.xcscheme | 0 .../contents.xcworkspacedata | 0 .../xcshareddata/IDEWorkspaceChecks.plist | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../example/ios/Runner/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../Icon-App-1024x1024@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin .../Icon-App-83.5x83.5@2x.png | Bin .../LaunchImage.imageset/Contents.json | 0 .../LaunchImage.imageset/LaunchImage.png | Bin .../LaunchImage.imageset/LaunchImage@2x.png | Bin .../LaunchImage.imageset/LaunchImage@3x.png | Bin .../LaunchImage.imageset/README.md | 0 .../Runner/Base.lproj/LaunchScreen.storyboard | 0 .../ios/Runner/Base.lproj/Main.storyboard | 0 .../example/ios/Runner/Info.plist | 0 .../ios/Runner/Runner-Bridging-Header.h | 0 .../example/lib/main.dart | 28 +++++++++++++++++- .../example/lib/src/shim/dart_ui.dart | 0 .../example/lib/src/shim/dart_ui_fake.dart | 0 .../example/lib/src/shim/dart_ui_real.dart | 0 .../example/pubspec.yaml | 6 ++-- .../example/test_driver/integration_test.dart | 0 .../example/web/favicon.png | Bin .../example/web/icons/Icon-192.png | Bin .../example/web/icons/Icon-512.png | Bin .../example/web/index.html | 0 .../example/web/manifest.json | 0 .../lib/pointer_interceptor.dart} | 2 +- .../lib/src/mobile.dart | 0 .../lib/src/shim/dart_ui.dart | 0 .../lib/src/shim/dart_ui_fake.dart | 0 .../lib/src/shim/dart_ui_real.dart | 0 .../lib/src/web.dart | 1 + .../pubspec.yaml | 4 +-- .../test/README.md | 0 .../test/tests_exist_elsewhere_test.dart | 0 88 files changed, 39 insertions(+), 10 deletions(-) rename packages/{web_pointer_interceptor => pointer_interceptor}/.gitignore (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/.metadata (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/CHANGELOG.md (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/LICENSE (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/README.md (91%) rename packages/{web_pointer_interceptor => pointer_interceptor}/doc/img/affected-areas.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/doc/img/fixed-areas.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/.gitignore (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/.metadata (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/README.md (95%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/.gitignore (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/build.gradle (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/debug/AndroidManifest.xml (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/AndroidManifest.xml (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/drawable-v21/launch_background.xml (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/drawable/launch_background.xml (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/values-night/styles.xml (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/main/res/values/styles.xml (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/app/src/profile/AndroidManifest.xml (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/build.gradle (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/gradle.properties (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/gradle/wrapper/gradle-wrapper.properties (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/android/settings.gradle (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/integration_test/widget_test.dart (97%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/.gitignore (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Flutter/AppFrameworkInfo.plist (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Flutter/Debug.xcconfig (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Flutter/Release.xcconfig (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner.xcodeproj/project.pbxproj (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner.xcworkspace/contents.xcworkspacedata (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/AppDelegate.swift (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Base.lproj/LaunchScreen.storyboard (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Base.lproj/Main.storyboard (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Info.plist (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/ios/Runner/Runner-Bridging-Header.h (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/lib/main.dart (86%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/lib/src/shim/dart_ui.dart (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/lib/src/shim/dart_ui_fake.dart (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/lib/src/shim/dart_ui_real.dart (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/pubspec.yaml (80%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/test_driver/integration_test.dart (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/web/favicon.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/web/icons/Icon-192.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/web/icons/Icon-512.png (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/web/index.html (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/example/web/manifest.json (100%) rename packages/{web_pointer_interceptor/lib/web_pointer_interceptor.dart => pointer_interceptor/lib/pointer_interceptor.dart} (87%) rename packages/{web_pointer_interceptor => pointer_interceptor}/lib/src/mobile.dart (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/lib/src/shim/dart_ui.dart (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/lib/src/shim/dart_ui_fake.dart (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/lib/src/shim/dart_ui_real.dart (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/lib/src/web.dart (98%) rename packages/{web_pointer_interceptor => pointer_interceptor}/pubspec.yaml (62%) rename packages/{web_pointer_interceptor => pointer_interceptor}/test/README.md (100%) rename packages/{web_pointer_interceptor => pointer_interceptor}/test/tests_exist_elsewhere_test.dart (100%) diff --git a/packages/web_pointer_interceptor/.gitignore b/packages/pointer_interceptor/.gitignore similarity index 100% rename from packages/web_pointer_interceptor/.gitignore rename to packages/pointer_interceptor/.gitignore diff --git a/packages/web_pointer_interceptor/.metadata b/packages/pointer_interceptor/.metadata similarity index 100% rename from packages/web_pointer_interceptor/.metadata rename to packages/pointer_interceptor/.metadata diff --git a/packages/web_pointer_interceptor/CHANGELOG.md b/packages/pointer_interceptor/CHANGELOG.md similarity index 100% rename from packages/web_pointer_interceptor/CHANGELOG.md rename to packages/pointer_interceptor/CHANGELOG.md diff --git a/packages/web_pointer_interceptor/LICENSE b/packages/pointer_interceptor/LICENSE similarity index 100% rename from packages/web_pointer_interceptor/LICENSE rename to packages/pointer_interceptor/LICENSE diff --git a/packages/web_pointer_interceptor/README.md b/packages/pointer_interceptor/README.md similarity index 91% rename from packages/web_pointer_interceptor/README.md rename to packages/pointer_interceptor/README.md index 2dcb47dbedbd..fd6a22c89c59 100644 --- a/packages/web_pointer_interceptor/README.md +++ b/packages/pointer_interceptor/README.md @@ -1,7 +1,9 @@ -# web_pointer_interceptor +# pointer_interceptor `PointerInterceptor` is a widget that prevents mouse events (in web) from being captured by an underlying [`HtmlElementView`](https://api.flutter.dev/flutter/widgets/HtmlElementView-class.html). +You can use this widget in a cross-platform app freely. In mobile, where the issue that this plugin fixes does not exist, the widget acts as a pass-through of its `children`, without adding anything to the render tree. + ## What is the problem? When overlaying Flutter widgets on top of `HtmlElementView` widgets that respond to mouse gestures (handle clicks, for example), the clicks will be consumed by the `HtmlElementView`, and not relayed to Flutter. diff --git a/packages/web_pointer_interceptor/doc/img/affected-areas.png b/packages/pointer_interceptor/doc/img/affected-areas.png similarity index 100% rename from packages/web_pointer_interceptor/doc/img/affected-areas.png rename to packages/pointer_interceptor/doc/img/affected-areas.png diff --git a/packages/web_pointer_interceptor/doc/img/fixed-areas.png b/packages/pointer_interceptor/doc/img/fixed-areas.png similarity index 100% rename from packages/web_pointer_interceptor/doc/img/fixed-areas.png rename to packages/pointer_interceptor/doc/img/fixed-areas.png diff --git a/packages/web_pointer_interceptor/example/.gitignore b/packages/pointer_interceptor/example/.gitignore similarity index 100% rename from packages/web_pointer_interceptor/example/.gitignore rename to packages/pointer_interceptor/example/.gitignore diff --git a/packages/web_pointer_interceptor/example/.metadata b/packages/pointer_interceptor/example/.metadata similarity index 100% rename from packages/web_pointer_interceptor/example/.metadata rename to packages/pointer_interceptor/example/.metadata diff --git a/packages/web_pointer_interceptor/example/README.md b/packages/pointer_interceptor/example/README.md similarity index 95% rename from packages/web_pointer_interceptor/example/README.md rename to packages/pointer_interceptor/example/README.md index fcd9468d99f5..d4973fd66082 100644 --- a/packages/web_pointer_interceptor/example/README.md +++ b/packages/pointer_interceptor/example/README.md @@ -1,4 +1,4 @@ -# web_pointer_interceptor +# pointer_interceptor_example An example for the PointerInterceptor widget. diff --git a/packages/web_pointer_interceptor/example/android/.gitignore b/packages/pointer_interceptor/example/android/.gitignore similarity index 100% rename from packages/web_pointer_interceptor/example/android/.gitignore rename to packages/pointer_interceptor/example/android/.gitignore diff --git a/packages/web_pointer_interceptor/example/android/app/build.gradle b/packages/pointer_interceptor/example/android/app/build.gradle similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/build.gradle rename to packages/pointer_interceptor/example/android/app/build.gradle diff --git a/packages/web_pointer_interceptor/example/android/app/src/debug/AndroidManifest.xml b/packages/pointer_interceptor/example/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/debug/AndroidManifest.xml rename to packages/pointer_interceptor/example/android/app/src/debug/AndroidManifest.xml diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/AndroidManifest.xml b/packages/pointer_interceptor/example/android/app/src/main/AndroidManifest.xml similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/AndroidManifest.xml rename to packages/pointer_interceptor/example/android/app/src/main/AndroidManifest.xml diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt b/packages/pointer_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt rename to packages/pointer_interceptor/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/pointer_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml rename to packages/pointer_interceptor/example/android/app/src/main/res/drawable-v21/launch_background.xml diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/drawable/launch_background.xml b/packages/pointer_interceptor/example/android/app/src/main/res/drawable/launch_background.xml similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/drawable/launch_background.xml rename to packages/pointer_interceptor/example/android/app/src/main/res/drawable/launch_background.xml diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/pointer_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png rename to packages/pointer_interceptor/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/pointer_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png rename to packages/pointer_interceptor/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/pointer_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png rename to packages/pointer_interceptor/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/pointer_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename to packages/pointer_interceptor/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/pointer_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png rename to packages/pointer_interceptor/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/values-night/styles.xml b/packages/pointer_interceptor/example/android/app/src/main/res/values-night/styles.xml similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/values-night/styles.xml rename to packages/pointer_interceptor/example/android/app/src/main/res/values-night/styles.xml diff --git a/packages/web_pointer_interceptor/example/android/app/src/main/res/values/styles.xml b/packages/pointer_interceptor/example/android/app/src/main/res/values/styles.xml similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/main/res/values/styles.xml rename to packages/pointer_interceptor/example/android/app/src/main/res/values/styles.xml diff --git a/packages/web_pointer_interceptor/example/android/app/src/profile/AndroidManifest.xml b/packages/pointer_interceptor/example/android/app/src/profile/AndroidManifest.xml similarity index 100% rename from packages/web_pointer_interceptor/example/android/app/src/profile/AndroidManifest.xml rename to packages/pointer_interceptor/example/android/app/src/profile/AndroidManifest.xml diff --git a/packages/web_pointer_interceptor/example/android/build.gradle b/packages/pointer_interceptor/example/android/build.gradle similarity index 100% rename from packages/web_pointer_interceptor/example/android/build.gradle rename to packages/pointer_interceptor/example/android/build.gradle diff --git a/packages/web_pointer_interceptor/example/android/gradle.properties b/packages/pointer_interceptor/example/android/gradle.properties similarity index 100% rename from packages/web_pointer_interceptor/example/android/gradle.properties rename to packages/pointer_interceptor/example/android/gradle.properties diff --git a/packages/web_pointer_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/pointer_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from packages/web_pointer_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties rename to packages/pointer_interceptor/example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/packages/web_pointer_interceptor/example/android/settings.gradle b/packages/pointer_interceptor/example/android/settings.gradle similarity index 100% rename from packages/web_pointer_interceptor/example/android/settings.gradle rename to packages/pointer_interceptor/example/android/settings.gradle diff --git a/packages/web_pointer_interceptor/example/integration_test/widget_test.dart b/packages/pointer_interceptor/example/integration_test/widget_test.dart similarity index 97% rename from packages/web_pointer_interceptor/example/integration_test/widget_test.dart rename to packages/pointer_interceptor/example/integration_test/widget_test.dart index 505aaca822da..59ca9a6052dd 100644 --- a/packages/web_pointer_interceptor/example/integration_test/widget_test.dart +++ b/packages/pointer_interceptor/example/integration_test/widget_test.dart @@ -10,7 +10,7 @@ import 'package:flutter/src/widgets/framework.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; -import 'package:web_pointer_interceptor_example/main.dart' as app; +import 'package:pointer_interceptor_example/main.dart' as app; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); diff --git a/packages/web_pointer_interceptor/example/ios/.gitignore b/packages/pointer_interceptor/example/ios/.gitignore similarity index 100% rename from packages/web_pointer_interceptor/example/ios/.gitignore rename to packages/pointer_interceptor/example/ios/.gitignore diff --git a/packages/web_pointer_interceptor/example/ios/Flutter/AppFrameworkInfo.plist b/packages/pointer_interceptor/example/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Flutter/AppFrameworkInfo.plist rename to packages/pointer_interceptor/example/ios/Flutter/AppFrameworkInfo.plist diff --git a/packages/web_pointer_interceptor/example/ios/Flutter/Debug.xcconfig b/packages/pointer_interceptor/example/ios/Flutter/Debug.xcconfig similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Flutter/Debug.xcconfig rename to packages/pointer_interceptor/example/ios/Flutter/Debug.xcconfig diff --git a/packages/web_pointer_interceptor/example/ios/Flutter/Release.xcconfig b/packages/pointer_interceptor/example/ios/Flutter/Release.xcconfig similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Flutter/Release.xcconfig rename to packages/pointer_interceptor/example/ios/Flutter/Release.xcconfig diff --git a/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.pbxproj b/packages/pointer_interceptor/example/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.pbxproj rename to packages/pointer_interceptor/example/ios/Runner.xcodeproj/project.pbxproj diff --git a/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to packages/pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/pointer_interceptor/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/pointer_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to packages/pointer_interceptor/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/pointer_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata rename to packages/pointer_interceptor/example/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/pointer_interceptor/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/packages/web_pointer_interceptor/example/ios/Runner/AppDelegate.swift b/packages/pointer_interceptor/example/ios/Runner/AppDelegate.swift similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/AppDelegate.swift rename to packages/pointer_interceptor/example/ios/Runner/AppDelegate.swift diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to packages/pointer_interceptor/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/pointer_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to packages/pointer_interceptor/example/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Base.lproj/Main.storyboard b/packages/pointer_interceptor/example/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Base.lproj/Main.storyboard rename to packages/pointer_interceptor/example/ios/Runner/Base.lproj/Main.storyboard diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Info.plist b/packages/pointer_interceptor/example/ios/Runner/Info.plist similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Info.plist rename to packages/pointer_interceptor/example/ios/Runner/Info.plist diff --git a/packages/web_pointer_interceptor/example/ios/Runner/Runner-Bridging-Header.h b/packages/pointer_interceptor/example/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from packages/web_pointer_interceptor/example/ios/Runner/Runner-Bridging-Header.h rename to packages/pointer_interceptor/example/ios/Runner/Runner-Bridging-Header.h diff --git a/packages/web_pointer_interceptor/example/lib/main.dart b/packages/pointer_interceptor/example/lib/main.dart similarity index 86% rename from packages/web_pointer_interceptor/example/lib/main.dart rename to packages/pointer_interceptor/example/lib/main.dart index 6888b9299ef4..40505877116b 100644 --- a/packages/web_pointer_interceptor/example/lib/main.dart +++ b/packages/pointer_interceptor/example/lib/main.dart @@ -6,7 +6,7 @@ import 'dart:html' as html; import 'package:flutter/material.dart'; -import 'package:web_pointer_interceptor/web_pointer_interceptor.dart'; +import 'package:pointer_interceptor/pointer_interceptor.dart'; import 'src/shim/dart_ui.dart' as ui; @@ -84,6 +84,18 @@ class _MyHomePageState extends State { return Scaffold( appBar: AppBar( title: const Text('PointerInterceptor demo'), + actions: [ + PointerInterceptor( + // debug: true, + child: IconButton( + icon: const Icon(Icons.add_alert), + tooltip: 'AppBar Icon', + onPressed: () { + _clickedOn('appbar-icon'); + }, + ), + ), + ], ), body: Center( child: Column( @@ -132,6 +144,20 @@ class _MyHomePageState extends State { ], ), ), + floatingActionButton: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + PointerInterceptor( + // debug: true, + child: FloatingActionButton( + child: const Icon(Icons.navigation), + onPressed: () { + _clickedOn('fab-1'); + }, + ), + ), + ], + ), drawer: Drawer( child: PointerInterceptor( // debug: true, // Enable this to "see" the interceptor covering the column. diff --git a/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui.dart b/packages/pointer_interceptor/example/lib/src/shim/dart_ui.dart similarity index 100% rename from packages/web_pointer_interceptor/example/lib/src/shim/dart_ui.dart rename to packages/pointer_interceptor/example/lib/src/shim/dart_ui.dart diff --git a/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart b/packages/pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart similarity index 100% rename from packages/web_pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart rename to packages/pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart diff --git a/packages/web_pointer_interceptor/example/lib/src/shim/dart_ui_real.dart b/packages/pointer_interceptor/example/lib/src/shim/dart_ui_real.dart similarity index 100% rename from packages/web_pointer_interceptor/example/lib/src/shim/dart_ui_real.dart rename to packages/pointer_interceptor/example/lib/src/shim/dart_ui_real.dart diff --git a/packages/web_pointer_interceptor/example/pubspec.yaml b/packages/pointer_interceptor/example/pubspec.yaml similarity index 80% rename from packages/web_pointer_interceptor/example/pubspec.yaml rename to packages/pointer_interceptor/example/pubspec.yaml index fd9feac1b0e0..b602e57e98ba 100644 --- a/packages/web_pointer_interceptor/example/pubspec.yaml +++ b/packages/pointer_interceptor/example/pubspec.yaml @@ -1,5 +1,5 @@ -name: web_pointer_interceptor_example -description: A new Flutter project. +name: pointer_interceptor_example +description: An example app for the pointer_interceptor package. publish_to: 'none' version: 1.0.0 @@ -9,7 +9,7 @@ environment: dependencies: flutter: sdk: flutter - web_pointer_interceptor: + pointer_interceptor: path: ../ dev_dependencies: diff --git a/packages/web_pointer_interceptor/example/test_driver/integration_test.dart b/packages/pointer_interceptor/example/test_driver/integration_test.dart similarity index 100% rename from packages/web_pointer_interceptor/example/test_driver/integration_test.dart rename to packages/pointer_interceptor/example/test_driver/integration_test.dart diff --git a/packages/web_pointer_interceptor/example/web/favicon.png b/packages/pointer_interceptor/example/web/favicon.png similarity index 100% rename from packages/web_pointer_interceptor/example/web/favicon.png rename to packages/pointer_interceptor/example/web/favicon.png diff --git a/packages/web_pointer_interceptor/example/web/icons/Icon-192.png b/packages/pointer_interceptor/example/web/icons/Icon-192.png similarity index 100% rename from packages/web_pointer_interceptor/example/web/icons/Icon-192.png rename to packages/pointer_interceptor/example/web/icons/Icon-192.png diff --git a/packages/web_pointer_interceptor/example/web/icons/Icon-512.png b/packages/pointer_interceptor/example/web/icons/Icon-512.png similarity index 100% rename from packages/web_pointer_interceptor/example/web/icons/Icon-512.png rename to packages/pointer_interceptor/example/web/icons/Icon-512.png diff --git a/packages/web_pointer_interceptor/example/web/index.html b/packages/pointer_interceptor/example/web/index.html similarity index 100% rename from packages/web_pointer_interceptor/example/web/index.html rename to packages/pointer_interceptor/example/web/index.html diff --git a/packages/web_pointer_interceptor/example/web/manifest.json b/packages/pointer_interceptor/example/web/manifest.json similarity index 100% rename from packages/web_pointer_interceptor/example/web/manifest.json rename to packages/pointer_interceptor/example/web/manifest.json diff --git a/packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart b/packages/pointer_interceptor/lib/pointer_interceptor.dart similarity index 87% rename from packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart rename to packages/pointer_interceptor/lib/pointer_interceptor.dart index aa90dc10d52e..c7604035308a 100644 --- a/packages/web_pointer_interceptor/lib/web_pointer_interceptor.dart +++ b/packages/pointer_interceptor/lib/pointer_interceptor.dart @@ -2,6 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -library web_pointer_interceptor; +library pointer_interceptor; export 'src/mobile.dart' if (dart.library.html) 'src/web.dart'; diff --git a/packages/web_pointer_interceptor/lib/src/mobile.dart b/packages/pointer_interceptor/lib/src/mobile.dart similarity index 100% rename from packages/web_pointer_interceptor/lib/src/mobile.dart rename to packages/pointer_interceptor/lib/src/mobile.dart diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart b/packages/pointer_interceptor/lib/src/shim/dart_ui.dart similarity index 100% rename from packages/web_pointer_interceptor/lib/src/shim/dart_ui.dart rename to packages/pointer_interceptor/lib/src/shim/dart_ui.dart diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart b/packages/pointer_interceptor/lib/src/shim/dart_ui_fake.dart similarity index 100% rename from packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart rename to packages/pointer_interceptor/lib/src/shim/dart_ui_fake.dart diff --git a/packages/web_pointer_interceptor/lib/src/shim/dart_ui_real.dart b/packages/pointer_interceptor/lib/src/shim/dart_ui_real.dart similarity index 100% rename from packages/web_pointer_interceptor/lib/src/shim/dart_ui_real.dart rename to packages/pointer_interceptor/lib/src/shim/dart_ui_real.dart diff --git a/packages/web_pointer_interceptor/lib/src/web.dart b/packages/pointer_interceptor/lib/src/web.dart similarity index 98% rename from packages/web_pointer_interceptor/lib/src/web.dart rename to packages/pointer_interceptor/lib/src/web.dart index c6183839936b..e2e86e811c5f 100644 --- a/packages/web_pointer_interceptor/lib/src/web.dart +++ b/packages/pointer_interceptor/lib/src/web.dart @@ -75,6 +75,7 @@ class PointerInterceptor extends StatelessWidget { Widget build(BuildContext context) { final String viewType = _getViewType(debug: debug); return Stack( + alignment: Alignment.center, children: [ Positioned.fill( child: HtmlElementView( diff --git a/packages/web_pointer_interceptor/pubspec.yaml b/packages/pointer_interceptor/pubspec.yaml similarity index 62% rename from packages/web_pointer_interceptor/pubspec.yaml rename to packages/pointer_interceptor/pubspec.yaml index 3012bd10dfee..0493a051a9cb 100644 --- a/packages/web_pointer_interceptor/pubspec.yaml +++ b/packages/pointer_interceptor/pubspec.yaml @@ -1,5 +1,5 @@ -name: web_pointer_interceptor -description: A new Flutter package project. +name: pointer_interceptor +description: A widget to prevent clicks from being swallowed by underlying HtmlElementViews on the web. version: 0.8.0 repository: https://github.com/flutter/packages diff --git a/packages/web_pointer_interceptor/test/README.md b/packages/pointer_interceptor/test/README.md similarity index 100% rename from packages/web_pointer_interceptor/test/README.md rename to packages/pointer_interceptor/test/README.md diff --git a/packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart b/packages/pointer_interceptor/test/tests_exist_elsewhere_test.dart similarity index 100% rename from packages/web_pointer_interceptor/test/tests_exist_elsewhere_test.dart rename to packages/pointer_interceptor/test/tests_exist_elsewhere_test.dart From b78c8b5ec7e264dbb8f3ae11387b596c8075a325 Mon Sep 17 00:00:00 2001 From: David Iglesias Teixeira Date: Wed, 16 Dec 2020 15:16:22 -0800 Subject: [PATCH 20/20] Fix shim so the component can be used on Android as well. --- packages/pointer_interceptor/example/lib/main.dart | 5 ++--- .../example/lib/src/shim/dart_ui_fake.dart | 4 +--- packages/pointer_interceptor/lib/src/shim/dart_ui_fake.dart | 4 +--- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/pointer_interceptor/example/lib/main.dart b/packages/pointer_interceptor/example/lib/main.dart index 40505877116b..f164cc13c593 100644 --- a/packages/pointer_interceptor/example/lib/main.dart +++ b/packages/pointer_interceptor/example/lib/main.dart @@ -11,8 +11,8 @@ import 'package:pointer_interceptor/pointer_interceptor.dart'; import 'src/shim/dart_ui.dart' as ui; const String _htmlElementViewType = '_htmlElementViewType'; -const num _videoWidth = 640; -const num _videoHeight = 480; +const double _videoWidth = 640; +const double _videoHeight = 480; /// The html.Element that will be rendered underneath the flutter UI. html.Element htmlElement = html.DivElement() @@ -49,7 +49,6 @@ void main() { class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { - // ignore: undefined_prefixed_name ui.platformViewRegistry.registerViewFactory(_htmlElementViewType, (int viewId) { final html.Element wrapper = html.DivElement(); diff --git a/packages/pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart b/packages/pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart index ccf4dc3c19b3..d8456c0951f6 100644 --- a/packages/pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart +++ b/packages/pointer_interceptor/example/lib/src/shim/dart_ui_fake.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'dart:html' as html; - // Fake interface for the logic that this package needs from (web-only) dart:ui. // This is conditionally exported so the analyzer sees these methods as available. @@ -14,7 +12,7 @@ class platformViewRegistry { /// Shim for registerViewFactory /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L72 static void registerViewFactory( - String viewTypeId, html.Element Function(int viewId) viewFactory) {} + String viewTypeId, dynamic Function(int viewId) viewFactory) {} } /// Shim for web_ui engine.AssetManager. diff --git a/packages/pointer_interceptor/lib/src/shim/dart_ui_fake.dart b/packages/pointer_interceptor/lib/src/shim/dart_ui_fake.dart index ccf4dc3c19b3..d8456c0951f6 100644 --- a/packages/pointer_interceptor/lib/src/shim/dart_ui_fake.dart +++ b/packages/pointer_interceptor/lib/src/shim/dart_ui_fake.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'dart:html' as html; - // Fake interface for the logic that this package needs from (web-only) dart:ui. // This is conditionally exported so the analyzer sees these methods as available. @@ -14,7 +12,7 @@ class platformViewRegistry { /// Shim for registerViewFactory /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L72 static void registerViewFactory( - String viewTypeId, html.Element Function(int viewId) viewFactory) {} + String viewTypeId, dynamic Function(int viewId) viewFactory) {} } /// Shim for web_ui engine.AssetManager.