Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pr updates
  • Loading branch information
LouiseHsu committed Dec 4, 2023
commit 10acb611594a94c767731934612c6b4e07bb26e1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ dependencies:
cupertino_icons: ^1.0.2
flutter:
sdk: flutter
pointer_interceptor:
path: ../../pointer_interceptor
pointer_interceptor_platform_interface: ^0.10.0

dev_dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'dart:html' as html;
import 'dart:ui_web' as ui_web;

import 'package:flutter/material.dart';
import 'package:pointer_interceptor/pointer_interceptor.dart';
import 'package:pointer_interceptor_platform_interface/pointer_interceptor_platform_interface.dart';

const String _htmlElementViewType = '_htmlElementViewType';
const double _videoWidth = 640;
Expand Down Expand Up @@ -86,7 +86,7 @@ class _MyHomePageState extends State<MyHomePage> {
appBar: AppBar(
title: const Text('PointerInterceptor demo'),
actions: <Widget>[
PointerInterceptor(
PointerInterceptorPlatform.instance.buildWidget(
// debug: true,
child: IconButton(
icon: const Icon(Icons.add_alert),
Expand Down Expand Up @@ -129,18 +129,15 @@ class _MyHomePageState extends State<MyHomePage> {
_clickedOn('transparent-button');
},
),
PointerInterceptor(
intercepting: false,
child: ElevatedButton(
key: const Key('wrapped-transparent-button'),
child:
const Text('Never calls onPressed transparent'),
onPressed: () {
_clickedOn('wrapped-transparent-button');
},
),
ElevatedButton(
key: const Key('wrapped-transparent-button'),
child:
const Text('Never calls onPressed transparent'),
onPressed: () {
_clickedOn('wrapped-transparent-button');
},
),
PointerInterceptor(
PointerInterceptorPlatform.instance.buildWidget(
child: ElevatedButton(
key: const Key('clickable-button'),
child: const Text('Works As Expected'),
Expand All @@ -160,7 +157,7 @@ class _MyHomePageState extends State<MyHomePage> {
floatingActionButton: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
PointerInterceptor(
PointerInterceptorPlatform.instance.buildWidget(
// debug: true,
child: FloatingActionButton(
child: const Icon(Icons.navigation),
Expand All @@ -172,7 +169,7 @@ class _MyHomePageState extends State<MyHomePage> {
],
),
drawer: Drawer(
child: PointerInterceptor(
child: PointerInterceptorPlatform.instance.buildWidget(
// debug: true, // Enable this to "see" the interceptor covering the column.
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ dependencies:
cupertino_icons: ^1.0.2
flutter:
sdk: flutter
pointer_interceptor:
path: ../../pointer_interceptor
pointer_interceptor_platform_interface: ^0.10.0

dev_dependencies:
flutter_lints: ^2.0.0
flutter_test:
sdk: flutter
integration_test:
Expand Down