Commit Graph

19133 Commits

Author SHA1 Message Date
Tong Mu
c8a4c8b8a7 Pointer events: Allow hover events from trackpad (#108116) 2022-07-21 17:37:04 +00:00
Jesús S Guerrero
fc3471fd28 check for pubspec instead of lib/ (#107968) 2022-07-21 17:03:09 +00:00
Bruno Leroux
d263cfbcb5 Fix BottomNavigationBarItem tooltip defaults to label (#107715) 2022-07-21 04:21:05 +00:00
Bernardo Ferrari
22cb06b57f Add OvalBorder and BoxShape.oval (#103833) 2022-07-20 21:29:04 +00:00
Dan Field
199cb2f5e6 Revert "Allow setting of TestWidgetsFlutterBinding.pointerEventSource (#107976)" (#108038)
This reverts commit 641f4e2403.
2022-07-20 11:14:58 -07:00
yaakovschectman
1e2be6ed54 Check for bad characters in path on Windows build (#107949)
* Check for bad characters in path on Windows build

* Doc comments

* Fix formatting

* Commenting/formatting

* Link to issue in comment

* Comments, formatting

* Global var rename
2022-07-20 14:05:13 -04:00
Sai Sandeep Mutyala
641f4e2403 Allow setting of TestWidgetsFlutterBinding.pointerEventSource (#107976) 2022-07-20 09:19:17 -07:00
Lau Ching Jun
922eea8763 Dart registrant location (#107967) 2022-07-20 08:51:04 +00:00
Vyacheslav Egorov
8130029374 Use persistent hash map to store _inheritedWidgets (#107068)
* Use persistent hash map to store _inheritedWidgets

Instead of using a HashMap and copying it down the tree
which leads to quadratic time and space complexity
use a persistent data structure which can amortize
the cost by sharing parts of the structure.

The data shows HAMT based PersistentHashMap to be
5-10x faster for building _inheritedWidgets and
considerably more space effecient (e.g. bringing
amount of memory allocated when constructing
_inheritedWidgets in a tree with 150 InheritedWidget
down to 70Kb from 970Kb).

PersistentHashMap is slower than HashMap for
access: 2-3x in relative terms, but in absolute
terms we are only talking about ~0.2ns slow down
per access and various app benchmarks we run have
have not revealed any significant regressions.
2022-07-19 21:45:26 -07:00
Pierre-Louis
be3802c922 Add support for fill, weight, grade, and optical size to Icon (#106896)
* wip

* update documentation

* x

* remove trailing spaces

* x

* remove useless CupertinoIconThemeData copyWith override

* add tests

* remove trailing spaces

* fix isConcrete

* x

* x

* x

* remove trailing spaces

* tweak docs

* mention that font filenames often indicate the supported axes

* add back cupertino IconThemeData copyWith

* update copyWith
2022-07-19 21:27:45 -04:00
Bruno Leroux
9bd058e949 Add useSafeArea parameter to showModalBottomSheet (#107140) 2022-07-19 23:48:05 +00:00
Marcel Čampa
0c40945a67 Implement CupertinoListSection and CupertinoListTile (#78732) 2022-07-19 18:46:30 -05:00
NikosTsesmelis
9d2f575403 Cupertino date picker fix for minDate, maxDate when using minuteInterval (#105958) 2022-07-19 18:37:35 -05:00
Romain Rastel
be0c37097e Add transitionOnUserGestures to true on SnackBar for back swipe (#106638) 2022-07-19 18:14:55 -05:00
David Iglesias
d72f08f50f [web][debug] Remove RequireJS timeouts for debug builds. (#107868) 2022-07-19 22:56:05 +00:00
Tong Mu
cda8041e52 [Keyboard] Make CharacterActivator support Ctrl and Meta modifiers, and repeats (#107195) 2022-07-19 22:55:05 +00:00
Foong Siqi
74ac867882 Modify calculation of dense button height when text scale is large for dropdown button (#107201) 2022-07-20 06:42:04 +08:00
Danny Tuppeny
c67d2587d5 Provide more useful error message if a non-compliant DAP tool (or user) sends bad input to DAP server (#107827) 2022-07-19 11:48:05 -07:00
Boluwatifẹ
b6afa9276d Error in docs: CustomPaint instead of CustomPainter (#107836) 2022-07-19 18:28:05 +00:00
Qun Cheng
2b621e1ab7 Add SafeArea for NavigationRail (#107605)
* Added SafeArea for NavigationRail

Co-authored-by: Qun Cheng <quncheng@google.com>
2022-07-19 11:01:31 -07:00
Swain
2dc8bb18e8 Make the cursor no longer blinking when move, as same as the effect of iOS platform. (#107221) 2022-07-19 16:27:04 +00:00
Valentin Vignal
3eee64047a 📝 Use Icon() in IconButton.color documentation (#107819) 2022-07-19 08:55:35 -07:00
Kate Lovett
f852c46c87 Expose padding on RawScrollbar (#107756) 2022-07-19 13:26:07 +00:00
Jason Simmons
21e9bc6bd3 Do not copy the old selection when applying localization to dates in InputDatePickerFormField (#107268)
Fixes https://github.com/flutter/flutter/issues/107155
2022-07-19 00:24:13 -07:00
Tong Mu
7e96d89aea PointerEvent asserts device kinds (#105987) 2022-07-19 04:43:04 +00:00
Zachary Anderson
e9529e2512 [flutter_tool] Allow includes relative to shader path (#107862) 2022-07-18 18:38:32 -07:00
Christopher Fujino
1371b8dc3c [flutter_tools] Fix null check errors in attach command (#107864) 2022-07-18 23:10:06 +00:00
Alexandre Ardhuin
ccd33631e3 enable combinators_ordering (#107847) 2022-07-18 22:04:07 +00:00
Christopher Fujino
81045d4a44 Revert "Read dart_plugin_registrant path from FlutterProject to support non-standard path." (#107850) 2022-07-18 19:58:10 +00:00
Christopher Fujino
b156c0c440 [flutter_tools] migrate clean_test to null-safety (#107750) 2022-07-18 19:10:07 +00:00
Markus Aksli
da3b2a2fbd Fix Scaffold setState during locked framework due to open drawer (#107173) 2022-07-18 11:50:06 +00:00
Christopher Fujino
4f9528293f [flutter_tools] Remove shuffle from doctor test (#107744) 2022-07-16 00:54:05 +00:00
Jesús S Guerrero
cdf5b1d40d Pub dependencies project validator (#106895) 2022-07-15 23:12:05 +00:00
Lau Ching Jun
2cfeb0d1e1 Pass device-user in machine mode (#107747) 2022-07-15 15:18:05 -07:00
Lau Ching Jun
8f834cf150 Read dart_plugin_registrant path from FlutterProject to support non-standard path. (#107617) 2022-07-15 12:33:07 -07:00
LongCatIsLooong
0d32ca2138 Allow key reparenting between slots in SlottedMultiChildRenderObjectWidgetMixin (#106977) 2022-07-15 19:08:05 +00:00
Christopher Fujino
060adf09db [flutter_tools] Migrate commands.shard/hermetic/doctor_test to null-safety and make hermetic (#107670) 2022-07-15 19:06:08 +00:00
Flutter GitHub Bot
bccbcd7dbb Roll pub packages (#107567) 2022-07-15 19:04:07 +00:00
Christopher Fujino
94da724868 [flutter_tools] fix RangeError in gen-l10n by checking for empty string (#107604) 2022-07-15 18:56:09 +00:00
LongCatIsLooong
d72853940f Remove exclamation marks (#107683) 2022-07-15 18:52:06 +00:00
Tae Hyung Kim
2da228593f [gen_l10n] Throw error when arb file does not exist (#107583) 2022-07-15 18:18:06 +00:00
Jenn Magder
c4975d9be0 Increase app minimum supported macOS version from 10.11 to 10.13 (#107689) 2022-07-15 11:12:43 -07:00
Taha Tesser
1bc787ee71 Fix dragging while the text selection toolbar is up doesn't hide toolbar (#106878)
Fixes a fidelity bug on desktop involving the selection toolbar not hiding when it should have.
2022-07-15 09:37:39 -07:00
Taha Tesser
bbec650b64 DropdownButton: Fix hint alignment when selectedItemBuilder is non-null. (#106731) 2022-07-15 09:56:07 +00:00
Taha Tesser
cf342254cc Add an interactive example for Overlay (#107531) 2022-07-15 09:44:05 +00:00
Taha Tesser
c422d280ab Add an example for AppBar.notificationPredicate (#106018) 2022-07-15 09:40:06 +00:00
Nguyen Phuc Loi
0cf9d41fc9 [flutter_driver] support send text input action (#106561)
* Support receive input action

* Fix error syntax

* Fix compile

* Add documents

* Add unit-test

* Update import

* Fixed unit-test and lint

* Add authors for me

* Fixed lint

* Fixed lint

* Add example

* Fixed lint

* Fix gen docs

* Revert code

* Remove flutter_dev

* Update packages/flutter_driver/lib/src/driver/driver.dart

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>

* Update packages/flutter_driver/lib/src/common/action.dart

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>

* Update packages/flutter_driver/lib/src/common/action.dart

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>

* Rename ReceiveAction to SendTextInputAction

* Rename DriverTextInputAction to TextInputAction and fix unit-test

* Reorder import

* Remove space

* Reorder import

* Update text_input.dart

* Update flutter_driver_test.dart

* Update comment to normal comment after dart doc

* Update example

* Update AUTHORS

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>

* Fix analyze

* Add type dart for example

* Add unit-test to check the same entries

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>
2022-07-14 17:21:11 -07:00
moko256
45e212e74f [Windows] Remove the usage of SETLOCAL ENABLEDELAYEDEXPANSION from bat scripts. (#106861) 2022-07-14 21:56:10 +00:00
Lau Ching Jun
5976c3702f Check device type using platformType instead of type check to support proxied devices. (#107618) 2022-07-14 14:38:06 -07:00
Callum Moffat
902b0124a6 Add UIApplicationSupportsIndirectInputEvents migration (#106889) 2022-07-14 21:00:06 +00:00