Commit Graph

20007 Commits

Author SHA1 Message Date
Christopher Fujino
c7cb5f3f5b [flutter_tools] pin package intl and roll pub packages (#117168)
* pin package intl and roll pub packages

* add test

* fix analysis
2022-12-16 00:34:51 +00:00
Michael Goderbauer
a34e419484 Inject current FlutterView into tree and make available via View.of(context) (#116924)
* enable View.of

* tests

* ++

* greg review

* rewording

* hide view from public
2022-12-16 00:13:56 +00:00
fzyzcjy
86b62a3c21 Tiny fix about outdated message (#114391) 2022-12-15 16:06:44 -08:00
hellohuanlin
0916375f44 [tools]Build IPA validation UI Polish (#116744)
* [tools]some ui polish for build ipa validation

* do not print out a few success validations

* rename installed type to success for more general usage

* forgot nit after reverting custom validation types and re-use doctor types
2022-12-15 14:43:32 -08:00
hangyu
c98978ae36 Update Navigator updatePages() (#116945)
* Update navigator.dart

* Update navigator.dart

* Add test

* Update navigator.dart

* lint

* Update packages/flutter/test/widgets/navigator_test.dart

Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>

* Update packages/flutter/test/widgets/navigator_test.dart

Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>

Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
2022-12-15 14:30:21 -08:00
Christopher Fujino
1eaf5c0f08 [flutter_tools] tree shake icons from web builds (#115886)
* wip

* remove temp text file

* fix tests

* add test

* default to off

* restore gitignore

* update

* apply annotation to cupertino icons as well

* update reference to library in icon_tree_shaker.dart

* update tests

* fix tests

* remove hack to skip non-const check on web

* add hint about how much reduction and test
2022-12-15 22:13:17 +00:00
Jenn Magder
ada4460502 Audit covariant usage in tool (#116930) 2022-12-15 11:59:34 -08:00
stuartmorgan
f1d157bc29 Add an integration test to plugin template example (#117062)
* Add an integration test to plugin template example

Dart unit tests don't exercise host-side plugin code at all, so the
example tests in the plugin template currently have very little
meaningful coverage. This adds an integration test to the example app
when creating a plugin, so that there's an example of how to actually
test that a complete round-trip plugin call works.

This is done as a separate template that's currently only used by the
plugin template because I don't know what a good example for a
non-plugin case would be that isn't largely just a duplicate of the
widget tests. However, the integration test pre-includes conditionals
around the parts that are plugin-specific so that it can more easily be
expanded to other use cases later (e.g., in
https://github.com/flutter/flutter/issues/68818).

Part of https://github.com/flutter/flutter/issues/82458

* Add integration test to expected dependencies of a plugin app

* Test fixes

* Make an explicit test case
2022-12-15 19:49:14 +00:00
Martin Kustermann
fc3571eff4 Improve documentation of compute() function (#116878)
This improves the documentation of the `compute()` function as follows:

  * Instead of making `compute` a top-level constant, we make it a
    function. This allows the generated API docs to show a function
    signature with parameters and their names, making it *much* clearer
    to users what function is being documented.

  * We mention that on web-backends this is running `compute()` on the
    normal eventloop whereas on on native platforms it runs in a
    separate isolate.

  * We mention that callback, message and result have to be sendable
    across isolates. We also mention that they may be copied.

  * We link to both `Isolate.run` & `SendPort.send` for more information.

  * We use `M` for the type of `message` instead the rather confusing
    `Q`.
2022-12-15 19:25:07 +01:00
Justin McCandless
dcd2170d14 Fix typos in scale gesture recognizer docs (#117116)
Just two small typo fixes.
2022-12-15 09:13:36 -08:00
Jonah Williams
169b49fba7 Revert "[framework] make transform with filterQuality a rpb (#116792)" (#117095)
This reverts commit e331dcda17.
2022-12-15 17:11:42 +00:00
Michael Goderbauer
409a39daea remove debugPrint from timePicker test (#117111) 2022-12-15 17:07:52 +00:00
Michael Goderbauer
dbc9306380 Failure to construct ErrorWidget for build errors does not destroy tree (#117090) 2022-12-14 21:53:20 +00:00
Tomasz Gucio
7b19b4d387 Fix CupertinoTextSelectionToolbar showing unnecessary pagination (#104587) 2022-12-14 22:38:04 +01:00
Darren Austin
d8b7eb6e29 Updated token templates to sync with master code. (#117097) 2022-12-14 21:32:12 +00:00
Phil Quitslund
f9acb1e88c -- unnecessary parens (#117081) 2022-12-14 21:18:37 +00:00
Taha Tesser
57fb36ee0a [reland] Add Material 3 support for ListTile - Part 1 (#116963)
* [reland] Add Material 3 support for `ListTile` - Part 1

* Update doc
2022-12-14 21:13:59 +00:00
Alexander Markov
c63d797f94 Upgrade dependencies (#117007) 2022-12-14 13:13:05 -08:00
Taha Tesser
f07db4018a NavigationBar improvements (#116992) 2022-12-13 17:25:49 -08:00
Greg Spencer
fae458b925 Convert TimePicker to Material 3 (#116396)
* Make some minor changes in preparation for updating the Time Picker to M3

* Revert OutlineInputBorder.borderRadius type change

* Revert more OutlineInputBorder.borderRadius changes.

* Convert TimePicker to Material 3

* Add example test

* Revert OutlineInputBorder.borderRadius type change

* Fix test

* Review Changes

* Merge changes

* Some sizing and elevation fixes

* Fix localization tests
2022-12-14 00:09:52 +00:00
Daniel Iglesia
0c7d84aa78 Add AppBar.forceMaterialTransparency (#101248) (#116867)
* Add AppBar.forceMaterialTransparency (#101248)

Allows gestures to reach widgets beneath the AppBar (when Scaffold.extendBodyBehindAppBar is true).
2022-12-14 09:45:50 +11:00
Michael Thomsen
f5249bcb0a Remove use of NullThrownError (#116122) 2022-12-13 08:42:54 +01:00
LongCatIsLooong
04ee5926a2 Remove RenderEditable textPainter height hack (#113301)
* remove RenderEditable textPainter height hack

* Still applies the hack on web

* unskip web
2022-12-13 03:42:23 +00:00
Callum Moffat
97df2b3191 Fix scroll jump when NestedScrollPosition is inertia-cancelled. (#116689)
* Fix scroll jump when NestedScrollPosition is inertia-cancelled.

* Switch to using pointerScroll(0)
2022-12-13 00:20:30 +00:00
Jonah Williams
e331dcda17 [framework] make transform with filterQuality a rpb (#116792)
* [framework] make transform with filterQuality a rpb

* fix tests

* ++
2022-12-12 23:30:17 +00:00
Kate Lovett
15939b4772 Remove duped fix rules (#116933) 2022-12-12 23:17:51 +00:00
Callum Moffat
601f48cd95 InteractiveViewer discrete trackpad panning (#112171)
* InteractiveViewer web trackpad panning

* Address feedback
2022-12-12 22:34:24 +00:00
Callum Moffat
8e1f8352bf Fix MediaQuery.paddingOf (#116858)
* Fix MediaQuery.paddingOf

* Try to fix test overflow on web
2022-12-12 21:54:54 +00:00
Loïc Sharma
c420562ef3 Fix output match (#116912) 2022-12-12 21:28:54 +00:00
Christopher Fujino
7a743c8816 [flutter_tools] Pin and roll pub (#116745)
* pin path_provider_android

* make path_provider_android non-transitive

* roll
2022-12-12 21:02:07 +00:00
Hans Muller
882e105a4c Revert "Add Material 3 support for ListTile - Part 1 (#116194)" (#116908)
This reverts commit e57b7f4ea8.
2022-12-12 20:06:21 +00:00
Jonah Williams
d19047d8a1 [framework] make opacity widget create a repaint boundary (#116788) 2022-12-12 18:40:13 +00:00
Michael Goderbauer
5a229e2827 Add LookupBoundary to Overlay (#116741)
* Add LookupBoundary to Overlay

* fix analysis
2022-12-12 18:16:06 +00:00
Taha Tesser
a8c9f9c6f4 Fix NavigationBar ripple for non-default NavigationDestinationLabelBehavior (#116888) 2022-12-12 18:02:20 +00:00
Jonah Williams
84ed058b42 [flutter_tools] Add remap sampler support (#116861) 2022-12-12 17:44:32 +00:00
Ian Hickson
9fdb64b7e7 Taboo the word "simply" from our API documentation. (#116061) 2022-12-11 22:43:22 +00:00
Ian Hickson
c02d53fc0e More gracefully handle license loading failures (#87841) 2022-12-11 05:17:19 +00:00
Casey Hillers
7549925c8c Revert "Adds API in semanticsconfiguration to decide how to merge child semanticsConfigurations (#110730)" (#116839)
This reverts commit 352ad3a9ef.
2022-12-11 02:23:40 +00:00
Callum Moffat
c4b8046d96 Floating cursor cleanup (#116746)
* Floating cursor cleanup

* Use TextSelection.fromPosition
2022-12-10 00:24:23 +00:00
Michael Goderbauer
9dd30878d9 Add LookupBoundary to Material (#116736) 2022-12-09 15:48:00 -08:00
Callum Moffat
73cb7c2fc5 Squashed MediaQuery InheritedModel (#114459) 2022-12-09 20:59:11 +00:00
Taha Tesser
e57b7f4ea8 Add Material 3 support for ListTile - Part 1 (#116194)
* Add Material 3 support for `ListTile` - Part 1

* minor refactor

* Add `useMaterial3: false` to M2 tests
2022-12-09 20:05:12 +00:00
Siva
7c8e171320 Manual Roll of Flutter Engine from 67254d6e4b03 to 8d83b98c55b3 (#116635)
* Roll Flutter Engine from 67254d6e4b03 to 8d83b98c55b3

* Roll Dart SDK from 35a9facce191 to e517487c5679 (Dart 3.0) (#38105)

* Bump SDK versions.

* Bump Dart SDK version constraints

* Update shrine package to 2.0.1 (null safe version)

* Fix more tests.

* Include patches from Jason for min android sdk version

* Fix analyzer warning
2022-12-08 18:03:51 -08:00
Christopher Fujino
afdc484011 add test of flutter update-packages --transitive-closure --consumer-only (#116747) 2022-12-09 01:00:22 +00:00
Tae Hyung Kim
117a83a4a7 Throw error when plural case had undefined behavior (#116622)
* init

* add comment

* make error more actionable
2022-12-08 22:29:14 +00:00
hangyu
003608f182 Update text field input width when there are prefix/suffix icons (#116690)
* Update input_decorator_test.dart

Update input_decorator.dart

Update input_decorator.dart

Update input_decorator.dart

Update input_decorator.dart

Update input_decorator.dart

Revert "Update input_decorator.dart"

This reverts commit 6a6d2fd0c145c15440405060190ef714b78441c9.

Update input_decorator.dart

Update input_decorator_test.dart

Update input_decorator.dart

lint

* Update input_decorator.dart
2022-12-08 10:27:46 -08:00
ivirtex
ef40e3ea6f Add CupertinoSliverNavigationBar large title magnification on over scroll (#110127)
* Add magnification of CupertinoSliverNavigationBar large title

* Fix padding in maximum scale computation

* Apply magnification by using RenderBox

* Do not pass key to the superclass constructor

* Use `clampDouble` instead of `clamp` extension method

* Remove trailing whitespaces to make linter happy

* Name test variables more precisely

* Move transform computation to `performLayout` and implement `hitTestChildren`

* Address comments

* Address comments

* Address comments

* Update comment about scale

* Fix hit-testing

* Fix hit-testing again

* Make linter happy

* Implement magnifying without using LayoutBuilder

* Remove trailing spaces

* Add hit-testing of the large title

* Remove whitespaces

* Fix scale computation and some tests

* Fix remaining tests

* Refactor and fix comments

* Update comments
2022-12-08 17:15:09 +00:00
zmtzawqlp
2ffc5bc17e Fix wrong position of TabBarIndicator when it's label size and has label padding (#116398) 2022-12-08 17:05:23 +00:00
chunhtai
521028c808 Reland "Use semantics label for backbutton and closebutton for Android" (#116676)
* Reland "Use semantics label for backbutton and closebutton for Android"

This reverts commit cc256c3e33.

* Makes the semantics slider test more robust
2022-12-07 21:46:17 +00:00
Siva
8b80552a3c Fix language version check logic to determine nullsafe soundness. (#116679) 2022-12-07 12:51:56 -08:00