Commit Graph

1097 Commits

Author SHA1 Message Date
Pierre-Louis
74cfc3db67 Use curly_braces_in_flow_control_structures for non-flutter packages (#104629)
* Use `curly_braces_in_flow_control_structures` for `packages/flutter_driver`

* Use `curly_braces_in_flow_control_structures` for `packages/flutter_goldens`

* Use `curly_braces_in_flow_control_structures` for `packages/flutter_goldens_client`

* Use `curly_braces_in_flow_control_structures` for `packages/flutter_localizations`

* Use `curly_braces_in_flow_control_structures` for `packages/flutter_test`

* Use `curly_braces_in_flow_control_structures` for `packages/flutter_web_plugins`

* fix comments

* Use `curly_braces_in_flow_control_structures` for `packages/integration_test`

* fix indentation
2022-05-25 20:01:11 +02:00
Michael Goderbauer
2b14e993a7 Cleanup random dead test code (#104568) 2022-05-25 10:23:10 -07:00
Xilai Zhang
de230d393c Revert "Add ability for ModalRoutes to ignore pointers during transitions and do so on Cupertino routes (#95757)" (#104520)
This reverts commit 4c0b0be2da.
2022-05-24 11:10:13 -07:00
Casey Hillers
da105b2b24 Revert "[framework] inline AbstractNode into RenderObject" (#104257) 2022-05-20 11:43:11 -07:00
Tong Mu
23bc3d64eb [Mouse] Remove all pointers at the end of tests (#102694) 2022-05-19 17:48:10 -07:00
Will Lockwood
4c0b0be2da Add ability for ModalRoutes to ignore pointers during transitions and do so on Cupertino routes (#95757) 2022-05-19 15:33:12 -07:00
Jonah Williams
24bd28f696 [framework] inline AbstractNode into RenderObject (#103832) 2022-05-19 14:28:09 -07:00
Chris Bracken
27c6cdb416 Roll dependendencies (#103771)
Roll dependendencies

This rolls depdendencies to latest using
flutter update-packages --force-upgrade

This change includes three code changes:

* Removes charcode from the dependencies allowlist since it no longer
  appears in the transitive closure of dependencies of the flutter,
  flutter_test, flutter_driver, flutter_localizations, and
  integration_test packages.

* Uses Resolver.create instead of the deprecated Resolver constructor.
  The default Resolver constructor has been deprecated in favour of the
  static Resolver.create() factory function, which unfortunately happens
  to be async. Propagated the async-ness up the chain.
  This change was partially reverted and the deprecation ignored in this
  patch until package:coverage can be rolled internally at Google.

* Eliminates the use of the deprecated packagesPath parameter to
  HitMap.parseJson. This parameter was deprecated and replaced with
  packagePath in https://github.com/dart-lang/coverage/pull/370 which
  was part of the overall deprecation of the .packages file in Dart
  itself https://github.com/dart-lang/sdk/issues/48272. The overall goal
  being that end-user code shouldn't need to know about implementation
  details such as whether dependency information is stored in a
  .packages file or a package_info.json file, but rather use the
  package_config package to obtain the package metadata and perform
  other functions such as resolving its dependencies to filesystem
  paths. packagesPath was replaced by packagePath, which takes the path
  to the package directory itself. Internally, package:coverage then
  uses package_config to do the rest of the package/script URI
  resolution to filesystem paths.
  This change was partially reverted and the deprecation ignored in this
  patch until package:coverage can be rolled internally at Google.

This is a pre-update prior to updating flutter_template_images in
https://github.com/flutter/flutter/pull/103739

Issue: https://github.com/flutter/flutter/issues/103371
Issue: https://github.com/flutter/flutter/issues/103775
Issue: https://github.com/flutter/flutter/issues/103830

When re-applying the partially-reverted changes to code coverage,
we'll need to patch host_entrypoint.dart internally to await the Future
that we'll be returning rather than a non-async value.
2022-05-14 16:34:10 -07:00
Christopher Fujino
e8c01a8aa8 [flutter_tools] pub roll (#103220)
Co-authored-by: Michael Goderbauer <goderbauer@google.com>
2022-05-10 10:26:54 -07:00
xubaolin
b20e27e77e Does not replace the root layer unnecessarily (#101748) 2022-05-05 18:44:10 -07:00
Callum Moffat
b5321d182a Reland "Fix position of CupertinoContextMenu within Transform.scale" (#102943)
* Fix position of CupertinoContextMenu within Transform.scale (#97896)

* Fix after rebase
2022-05-04 11:13:21 +02:00
Phil Quitslund
20f029e3bc [devicelab, flutter_test, ...] rename local functions with _s (#102833) 2022-05-03 10:29:06 -07:00
Darren Austin
7965ee25dd Revert "Fix position of CupertinoContextMenu within Transform.scale (#97896)" (#102938)
This reverts commit 6ddb99e98f.
2022-05-02 13:40:12 -07:00
Callum Moffat
6ddb99e98f Fix position of CupertinoContextMenu within Transform.scale (#97896) 2022-05-02 21:56:09 +02:00
Alexandre Ardhuin
07f1c20474 add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
Sai Sandeep Mutyala
7b580fd5df Enable TestDefaultBinaryMessenger to intercept all platform channels. (#100049) 2022-04-25 10:44:07 -07:00
Daniel Cardona Rojas
a3a9a23e46 Add matcher to find at least a given number of widgets (#102081) (#102342) 2022-04-22 15:24:10 -07:00
chunhtai
2ebc7bee9c Adds tooltip to semantics node (#87684) 2022-04-21 12:14:09 -07:00
8rine23
9313fb8e28 The sample code used within the comments in textContaining is wrong (#100860) 2022-04-20 14:36:14 -07:00
chunhtai
796df06c32 Add API sample code to AccessibilityGuideline (#102161) 2022-04-19 14:34:08 -07:00
Callum Moffat
30a501801a Support trackpad gestures in framework (#89944)
* Implement trackpad gestures in framework

* Touch and Pan/Zoom pointers have separate IDs now

* Handle trackpad pointer device type

* Respect supportedDevices for pan/zoom events

* Update after rebase

* Fix check failures

* Avoid error with very short drags

* Address feedback

* Refactor drag event handler

* Address more feedback

* Add some missing punctuation
2022-04-12 19:47:01 -07:00
Michael Goderbauer
a01424773e Enable unnecessary_import (#101600) 2022-04-08 12:56:45 -07:00
Greg Spencer
efe76a5373 Update key examples to use Focus widgets instead of RawKeyboardListener (#101537)
This updates the examples for PhysicalKeyboardKey and LogicalKeyboardKey to use Focus widgets that handle the keys instead of using RawKeyboardListener, since that usually leads people down the wrong path. Updated the See Also and added tests as well. Also exposed the `physicalKey` attribute for `tester.sendKeyEvent`.
2022-04-08 12:05:41 -07:00
Anna Gringauze
74944d528f Run update-packages (#101450)
* Run update-packages

* Update DwdsLauncher, disable failing test

* Fix analyze error

Co-authored-by: Jenn Magder <magder@google.com>
2022-04-07 17:07:05 -07:00
matasb-google
120b3deb18 Improve A11Y guidelines/tests for flutter (#100267)
* Incorrect size comparison
* Code cleanup/formatting
* Additional tests
2022-04-06 10:59:37 +02:00
Michael Goderbauer
3e406c6781 Prepare packages (minus tools,framework) for use_super_parameters (#100510) 2022-03-30 15:31:59 -07:00
Christopher Fujino
ef8e3578c1 [flutter_tools] update pub packages (#100726) 2022-03-25 16:45:09 -07:00
Brian Quinlan
f6c4c3df19 Remove unnecessary ignore: override_on_non_overriding_member (#99793) 2022-03-16 19:10:17 -07:00
Harsh Bhikadia
fece72cac7 docs(flutter_test): fix mention of non-existing matchesSemanticsNode (#99659) 2022-03-16 18:55:18 -07:00
moko256
13bf7515f4 Web: treat modifier key without location (#98460) 2022-03-15 19:50:10 -07:00
Valentin Marquis
4f4c7816c3 Fix/text containing finder work with rich texts (#99682) 2022-03-13 23:35:07 -07:00
Ben Konyi
1880066dd3 Update dependencies (#99874) 2022-03-10 14:13:59 -07:00
Jonah Williams
67f25caf72 Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
Viren Khatri
671aa9e95e complete migration of flutter repo to Object.hash* (#99505) 2022-03-04 12:56:21 -08:00
Michael Goderbauer
852bfe2a73 Use BindingBase.platformDispatcher over BindingBase.window where possible (#99443) 2022-03-04 11:11:07 -08:00
LongCatIsLooong
81464ff642 Reland "[EditableText] honor the "brieflyShowPassword" system setting #97769 " (#98150) 2022-02-11 02:30:14 -08:00
Brian Quinlan
76855aa893 Add keyLog and connectionFactory to HttpClient implementations (#98045) 2022-02-11 00:35:16 -08:00
Callum Moffat
3f9c0e74f2 PointerDeviceKind forwards-compatibility in flutter_test (#98202) 2022-02-10 19:50:27 -08:00
godofredoc
3bdea6bb92 Revert "[EditableText] honor the "brieflyShowPassword" system setting (#97769)" (#98089)
This reverts commit 63f48d1ff8.
2022-02-08 20:11:08 -08:00
LongCatIsLooong
63f48d1ff8 [EditableText] honor the "brieflyShowPassword" system setting (#97769) 2022-02-08 17:50:20 -08:00
Jonah Williams
4f975cbe2f [framework] inline casts on Element.widget getter to improve web performance (#97822) 2022-02-08 13:05:21 -08:00
Ian Hickson
ab89ce285f Clean up the bindings APIs. (#89451) 2022-02-03 14:55:15 -08:00
Harry Terkelsen
03f1d37935 Add a benchmark for a scrolling list of Links (#94638) 2022-02-03 14:38:58 -08:00
Pierre-Louis
a22cf5d6b9 Update packages (#97592)
* update packages

* implement

* remove trailing spaces

* Revert "remove trailing spaces"

This reverts commit d3bffbef57d142a4a5d98dea4c3e9b6db856c9bb.

* Revert "implement"

This reverts commit 6b6172a827c84985c5fe09e676096878fba43306.
2022-02-02 09:16:05 +01:00
Jami Couch
af89a25e5b Re-land "Support Scribble Handwriting" (#96615) (#97437) 2022-02-01 09:50:07 -08:00
Justin McCandless
40c4da5cb8 Revert "Re-land "Support Scribble Handwriting" (#96615) (#96881)" (#97405)
This reverts commit c54ce01575.
2022-01-27 16:11:02 -08:00
Jami Couch
c54ce01575 Re-land "Support Scribble Handwriting" (#96615) (#96881) 2022-01-27 15:10:21 -08:00
Lasse R.H. Nielsen
b8fd21b04e Adds CommonFinders.bySubtype<T extends Widget>() finder. (#91415) 2022-01-25 12:35:14 -08:00
Michael Goderbauer
5684b9f69e Enable no_leading_underscores_for_local_identifiers (#96422) 2022-01-21 14:43:59 -08:00
Alberto
ee6a693cde chore(flutter_test): updated 'matchesGoldenFile' documentation (#96194) 2022-01-20 15:25:20 -08:00