10741 Commits

Author SHA1 Message Date
Jonah Williams
24bd28f696
[framework] inline AbstractNode into RenderObject (#103832) 2022-05-19 14:28:09 -07:00
Greg Spencer
f6c3ee310f
Add ShortcutsRegistry (#103456)
This adds a ShortcutsRegistry for ShortcutActivator to Intent mappings that can be modified from its descendants.

This is so that descendants can make shortcuts dynamically available to a larger portion of the app than just their descendants. This is a precursor needed by the new MenuBar, for instance, so that the menu bar itself can be placed where it likes, but the shortcuts it defines can be in effect for most, if not all, of the UI surface in the app. For example, the "Ctrl-Q" quit binding would need to work even if the focused widget wasn't a child of the MenuBar.

This just provides the shortcut to intent mapping, the actions activated by the intent are described in the context where they make sense. For example, defining a "Ctrl-C" shortcut mapped to a "CopyIntent" should perform different functions if it happens while a TextField has focus vs when a drawing has focus, so those different areas would need to define different actions mapped to "CopyIntent". A hypothetical "QuitIntent" would probably be active for the entire app, so would be mapped in an Actions widget near the top of the hierarchy.
2022-05-19 13:17:42 -07:00
Darren Austin
17e2fce1cf
Add const MaterialStatePropertyAll class. (#104127) 2022-05-19 09:35:33 -07:00
David Miguel Lozano
b1f10cebbe
Define ColorSwatch.lerp() function (#103701) 2022-05-19 09:28:08 -07:00
Bernardo Ferrari
440e0e2c4e
Add StrokeAlign to Border (#102112) 2022-05-19 09:18:10 -07:00
Taha Tesser
3f5bd7d89e
Add Material 3 AppBar example (#102823) 2022-05-19 00:13:09 -07:00
xubaolin
93211a48d7
[Scrollbar]Skip the ScrollPosition check if the bar was unmounted (#103948) 2022-05-18 20:12:10 -07:00
Dan Field
d50b5a0749
Stop recommending "shrinkWrap" (#104008) 2022-05-18 17:47:15 -07:00
Bruno Leroux
4b67827169
Add Tooltip default vertical padding (#103395) 2022-05-18 17:42:15 -07:00
Justin McCandless
384800b5e7
Fix right clicking a field to focus (#103228) 2022-05-18 17:37:11 -07:00
Justin McCandless
715fcaac72
Can't drag the cursor with the mouse (#103002) 2022-05-18 17:32:12 -07:00
Bruno Leroux
8afaf7b58e
Fix documentation for filterQuality fields (#104056) 2022-05-18 14:42:10 -07:00
Justin McCandless
8f7e41a94c
Some MacOS control key shortcuts (#103936) 2022-05-18 13:37:12 -07:00
gaaclarke
64a0c19652
switched to a double variant of clamp to avoid boxing (#103559) 2022-05-18 13:26:08 -07:00
Taha Tesser
32157e3fcb
AppBar: Fix nested scroll view doesn't update AppBar elevation for Material 3 (#103899) 2022-05-18 13:22:09 -07:00
Casey Hillers
a4a8e73bce
Revert "Fix Backbutton is not displayed when there is a endDrawer (#102093)" (#104039)
This reverts commit f8f438730d269c23af4e1b3566bcdfaa076d9277.
2022-05-18 09:53:28 -07:00
Greg Spencer
08496712b0
Reorder Theme fields and arguments to be consistently alphabetical within sections. (#104011) 2022-05-17 20:57:08 -07:00
Michael Goderbauer
2cbad4b3ae
Final chapter: migrate api doc samples to super-parameters (#104007) 2022-05-17 15:35:07 -07:00
Dan Field
1662a14bc8
More missing clipBehavior respects (#103931) 2022-05-17 11:32:11 -07:00
Dan Field
d54cdf9e18
Add a mechanism to observe layer tree composition. (#103378) 2022-05-17 11:22:11 -07:00
Greg Spencer
1994027986
Add VoidCallbackAction and VoidCallbackIntent (#103518)
This adds a simple VoidCallbackAction and VoidCallbackIntent that allows configuring an intent that will invoke a void callback when the intent is sent to the action subsystem. This allows binding a shortcut directly to a void callback in a Shortcuts widget.

I also added an instance of VoidCallbackAction to the default actions so that simply binding a shortcut to a VoidCallbackIntent works anywhere in the app, and you don't need to add a VoidCallbackAction at the top of your app to make it work.
2022-05-17 11:11:41 -07:00
Jim Graham
697e930d5e
add noSuchMethod to _MulticastCanvas to unblock smoke testing against forthcoming new getTransform/Clip methods (#103737) 2022-05-16 13:49:10 -07:00
Dan Field
fe87538b76
Implement paintsChild on RenderObjects that skip painting on their children (#103768) 2022-05-16 11:29:07 -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
Dan Field
4f96419612
Make _RenderCustomClip respect clipBehavior (#103748) 2022-05-13 17:14:07 -07:00
Jason Simmons
275fb0286c
Fix avoid_redundant_argument_values analyzer warnings enabled in the latest Dart SDK (#103734)
See https://github.com/flutter/flutter/pull/103719
2022-05-13 12:57:59 -07:00
Nils Reichardt
2b2cda1529
Add blank line after first sentence of doc comment for CheckedModeBanner (#103490) 2022-05-13 08:59:12 -07:00
Danilo Rêgo
4fc15c851a
docs: update Cubic constructor doc. (#103555) 2022-05-12 16:14:08 -07:00
Bruno Leroux
190d77627d
Add Tooltip textAlign property (#103475) 2022-05-12 16:09:15 -07:00
Jami Couch
78885ecbeb
Provide default method call handler for SystemChannels.textInput (#101087) 2022-05-12 15:59:13 -07:00
chunhtai
533816d116
Refactor web text editing shortcuts (#103377) 2022-05-12 13:09:06 -07:00
Jonah Williams
496049263e
[framework] fix slider regression due to touch slop changes (#103569) 2022-05-11 23:14:11 -07:00
Michael Goderbauer
8bec125aaf
Avoid analyzing API example code twice, clean-up (#103548) 2022-05-11 21:27:45 -07:00
Tong Mu
65ea76718f
[gen_keycode, RawKeyboard] Apply derived keyboard layout from Linux (#102709) 2022-05-11 20:04:14 -07:00
LongCatIsLooong
7f12d42e2f
Accessibility troubleshooting docs for TextField widgets (#103521) 2022-05-11 14:34:09 -07:00
Andree Yosua
f5fb9e8c01
Fix ThemeData extension throws when the ThemeExtension not found (#103343) 2022-05-10 21:44:07 -07:00
xubaolin
d29ccad6fb
fix SliverReorderableList not work on Android platform bug (#103406) 2022-05-10 21:09:04 -07:00
Renzo Olivares
c411065b01
Fix selection not deselected when TextField loses focus (#103424) 2022-05-10 17:34:07 -07:00
Kate Lovett
171d8c1e85
[Reland] Assert there are Scaffolds to present to for snackbars and banners (#103426) 2022-05-10 16:24:12 -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
Kyosuke Takayama
8c46968c62
fix compile error in the example code (#103261) 2022-05-10 09:04:09 -07:00
Darren Austin
dfb4ff2f76
Updated tokens to v0.98. (#103360) 2022-05-09 23:15:44 -07:00
Bruno Leroux
ff136cba7f
Fix Tooltip obscured by keyboard (#103339) 2022-05-09 13:39:07 -07:00
Aman Verma
0ff0affb3a
Expose controller for PaginatedDataTable (#100005) 2022-05-09 13:34:07 -07:00
Gustav Bylund
95116386b7
Replace ListView with ListView.builder for LicensesPage (#102692) 2022-05-09 09:44:06 -07:00
Greg Spencer
6504f2896c
Adds menuBarMenuLabel, and removes unneeded key localizations (#102100)
When I added localizations for shortcut keys, I added some that actually can't be shortcut keys, so I'm removing them again. These are mostly Japanese-specific keys that don't even appear on modern keyboards for the most part.

Also, added menuBarMenuLabel for an accessibility label for menu bar menus.

I modified the code for the localization generation scripts to add a --remove-undefined flag that will remove any localizations that don't appear in the canonical locale.
2022-05-09 09:25:52 -07:00
Taha Tesser
92a59caa7f
CupertinoTabScaffold/CupertinoTabController: Add interactive examples (#103196)
* `CupertinoTabScaffold`/`CupertinoTabController`: Add interactive examples

* fix class name in the test

* Kick tests
2022-05-09 11:16:32 +02:00
xubaolin
4bed76757d
Fix a _WrappedScrollBehavior.shouldNotify bug (#103267) 2022-05-07 11:44:08 -07:00
Qun Cheng
2427d4f3d6
Added clipBehavior on TabBarView (#103166) 2022-05-07 08:44:07 -07:00
Bruno Leroux
c18097178c
Fix empty Stack with infinite constraints throws (#102642) 2022-05-07 04:34:06 -07:00