10468 Commits

Author SHA1 Message Date
Qun Cheng
d33125687b
Reland: Add visual density for menu default style (#114878) 2023-03-03 18:08:27 -08:00
Hasnen Tai
859b6ecd3d
Feat: showDatePicker - Exposed callback when user changes Date Picker Mode (#119116) 2023-03-03 15:55:04 -08:00
Xilai Zhang
9cb7a151ad
Revert "Use AnimatedSwitcher's _childNumber as Key in layoutBuilder's Stack (#121408)" (#121835)
[flutter roll] Revert "Use AnimatedSwitcher's _childNumber as Key in layoutBuilder's Stack"
2023-03-02 23:24:02 +00:00
Bruno Leroux
a4ecd3e2f1
Cleanup PageTransitionsTheme documentation and add one example (#121701)
Cleanup PageTransitionsTheme documentation and add one example
2023-03-02 20:47:53 +00:00
Qun Cheng
c7fa8e5f7d
Revert "Add visual density for menu default style (#114878)" (#121810)
This reverts commit 37be384205778c94f0d34e92499ae0766f842f8a.
2023-03-02 10:34:15 -08:00
Michael Goderbauer
92a1a8ba09
Migrate to FlutterView.gestureSettings (#121749) 2023-03-02 10:17:29 -08:00
LongCatIsLooong
e7ab3b07f8
OverlayPortal (#105335)
`OverlayPortal`
2023-03-02 17:34:01 +00:00
Hans Muller
a2814a61cb
Added identical(a,b) short circuit ... finale (#121759) 2023-03-01 19:24:18 -08:00
Qun Cheng
37be384205
Add visual density for menu default style (#114878)
Add visual density for menu default style
2023-03-01 23:01:49 +00:00
Davide Dessì
844fc5fe2d
Fix CupertinoSliverNavigationBar's alwaysShowMiddle not working properly during page transition (#120895)
Fix CupertinoSliverNavigationBar's alwaysShowMiddle not working properly during page transition
2023-03-01 20:37:41 +00:00
takashi kasai
909e29edc5
moving the left handle automatically scrolls EditableText to the right handle, which doesn't happen on native (#105836)
Fixes a scrolling issue when dragging selection handles.
2023-03-01 11:52:27 -08:00
Justin McCandless
71c70ebf36
Custom context menus in SelectableRegion on web (#121653)
contextMenuBuilder now works with SelectableRegion on web (when using BrowserContextMenu.disable).
2023-03-01 10:00:14 -08:00
chunhtai
978d9b5514
Issues/111931 reland (#121576)
* Revert "Revert "Fix text.rich to merge widget span (#113461)" (#121562)"

This reverts commit c8d80163b03f76e0cfde15567d065b6d1903cf8d.

* Fixes tag to not pollute cached semantics configuration in rendering object
2023-03-01 08:33:03 -08:00
Bruno Leroux
b66a547439
Fix _TextEditingHistoryState reentrant calls (#120889)
Fix text history undo/redo should not add a new entry to the history
2023-03-01 08:52:46 +00:00
Daniel Austin
b10f25c603
implement override of toString() in order to print useful message in release mode as well as debug mode (#118263)
Added `_ErrorDescription.toString()`
2023-03-01 01:08:52 +00:00
James Lee
3c70fb2667
Add typically used parameter name to the builder used in layout_builder (#119877)
Add  typically used parameter name to the builder used in layout_builder
2023-03-01 00:25:55 +00:00
Michael Goderbauer
6de42a70f1
Fix how tests count open SemanticsHandles (#121571)
Fix how tests count open SemanticsHandles
2023-02-28 23:55:58 +00:00
Xilai Zhang
153fce4d45
Revert "Fix ExpansionTile hint for Android (#120881)" (#121624)
This reverts commit fd65fd1b161277cec815ea2b10d63976b7d0da6d.
2023-02-28 13:15:47 -08:00
Dan Field
c8aa37d1ea
Fix for #112403 and b/249091367 (#121615)
Fix monodrag gestures for #112403 and b/249091367
2023-02-28 20:14:33 +00:00
Jim Gerth
0a1af28a8b
Use AnimatedSwitcher's _childNumber as Key in layoutBuilder's Stack (#121408)
Use AnimatedSwitcher's _childNumber as Key in layoutBuilder's Stack
2023-02-28 18:37:29 +00:00
Greg Price
e13677450c
Make ClampingScrollSimulation ballistic and more like Android (#120420)
Make ClampingScrollSimulation ballistic and more like Android
2023-02-28 17:38:29 +00:00
Ben Konyi
ecd7518df5
Reland "Remove references to Observatory (#118577)" (#121606)
This reverts commit 275ab9c69bc15113003b77637ea90031df8ed348.
2023-02-28 11:57:04 -05:00
Michael Goderbauer
df66fecdcf
showOnScreen does not crash if target node doesn't exist anymore (#121575)
showOnScreen does not crash if target node doesn't exist anymore
2023-02-28 03:06:28 +00:00
Hans Muller
cd0030cc27
Removed "typically non-null" API doc qualifiers from ScrollMetrics min,max extent getters (#121572)
Removed "typically non-null" API doc qualifiers from ScrollMetrics min,max extent getters
2023-02-28 01:53:52 +00:00
Skandar Munir
681b72c304
fixes Show Week Day in CupertinoDatePicker with CupertinoDatePickerMo… (#120052)
fixes Show Week Day in CupertinoDatePicker with CupertinoDatePickerMo…
2023-02-28 01:52:51 +00:00
Kate Lovett
677971828d
Fix scrolled under for 2D scrolling (#121297)
Fix AppBar scrolled under for 2D scrolling
2023-02-28 01:13:51 +00:00
Hans Muller
1bfba7564b
Added identical(a,b) short circuit to rendering library lerp methods (#121566)
Added identical(a,b) short circuit to rendering library lerp methods
2023-02-28 00:55:56 +00:00
Michael Goderbauer
275ab9c69b
Revert "Reland "Remove references to Observatory (#118577)" (#121215)" (#121555)
Revert "Reland "Remove references to Observatory (#118577)""
2023-02-27 23:46:53 +00:00
chunhtai
c8d80163b0
Revert "Fix text.rich to merge widget span (#113461)" (#121562)
This reverts commit 660992a161ba04de706cd3931c32d3123e6e1228.
2023-02-27 15:38:43 -08:00
Mahan
14a9c23020
Separate theme logic (#117818)
Separate theme logic
2023-02-27 22:34:46 +00:00
Bruno Leroux
fa49db31f1
Cleanup material/tabs.dart documentation (#121524)
Cleanup material/tabs.dart documentation
2023-02-27 22:34:44 +00:00
Tomohiko Tanihata
6175937565
Update scroll paging logic in Scrollbar (#121481)
Update scroll paging logic in Scrollbar
2023-02-27 21:06:29 +00:00
Taha Tesser
fd65fd1b16
Fix ExpansionTile hint for Android (#120881)
Fix `ExpansionTile` double tap to collapse/expanded and expanded/collapsed states semantics announcements
2023-02-27 18:40:17 +00:00
ivirtex
edba606974
Fix text color not resolving when CupertinoThemeData.brightness is null (#115026)
* Fix text color not resolving in `CupertinoApp`

* Make linter happy

* Create cupertinoBuilder for theming

* Make linter happy

* Fix tests

* Fix regression

* Delete whitespace

* Resolve color passed to the `WidgetsApp`

* Revert "Resolve color passed to the `WidgetsApp`"

This reverts commit 6994719a564c476dcb6d389e4547bff3ded08203.

* Resolve selection colors

* Kick tests

* Delete doubled test
2023-02-27 10:36:11 -08:00
Bruno Leroux
a297cb368b
Fix Ink decoration image does not render (#121521) 2023-02-27 08:51:21 -08:00
Rulong Chen(陈汝龙)
a5c60f4128
Limit the PlatformView ID within the range of 32-bit integers. (#121203)
Limit the PlatformView ID within the range of 32-bit integers.
2023-02-27 14:52:40 +00:00
Ben Konyi
fbae472fc3
Reland "Remove references to Observatory (#118577)" (#121215)
This reverts commit 298d8c76ba78007deb5b96f320a11ccefe97a794.
2023-02-27 09:26:43 -05:00
Michael Goderbauer
b1b7284a72
Move semantic-related bindings to SemanticsBinding (#121289)
Move semantic-related bindings to SemanticsBinding
2023-02-24 19:30:57 +00:00
Mitchell Goodwin
cb67ecd97d
Add adaptive RefreshIndicator (#121249) 2023-02-24 10:51:37 -08:00
Bruno Leroux
5d99748c7a
Remove accessibleNavigation reference from BottomSheet (#121132)
Remove accessibleNavigation reference from BottomSheet
2023-02-24 17:22:28 +00:00
Taha Tesser
219ff64574
Reland "Update ExpansionTile to support Material 3 & add an example" (#121212) 2023-02-24 06:30:33 -08:00
Hans Muller
1c753635b1
Added identical(a,b) short circuit to painting Library lerp methods (#121346) 2023-02-23 14:23:39 -08:00
Qun Cheng
07b0252da4
Change mouse cursor to be SystemMouseCursors.click when not focusable (#121353)
Co-authored-by: Qun Cheng <quncheng@google.com>
2023-02-23 14:23:11 -08:00
Greg Spencer
b1d8a4e4c7
Modify focus traversal policy search to use focus tree instead of widget tree (#121186)
* Modify focus traversal policy search to use focus tree instead of widget tree

* Eliminate unnecessary inherited widget

* Remove unintentional change

* Look for focus nodes without creating a dependency.

* Add test

* Review Changes

* Fix debug_test.dart

* Rebase onto master
2023-02-23 21:15:54 +00:00
Lioness100
26b6c1bedd
Fix typos (#121171)
* Fix typos

* lowercase animated & opacity

* Undo typo fix

---------

Co-authored-by: Michael Goderbauer <goderbauer@google.com>
2023-02-23 19:43:21 +00:00
David Neuy
3681b27a47
Fix DataCell overflows when cell height is large by adding dataRowMinHeight, dataRowMaxHeight props. (#114338)
* Fix DataCell overflows when cell height is large by adding dataRowMinHeight, dataRowMaxHeight props.

* Fix DataCell overflows when cell height is large by adding dataRowMinHeight, dataRowMaxHeight props - add tests.

* Fix analysis errors

* Review changes.

* Add asserts for dataRowMinHeight and dataRowMaxHeight

* Add asserts for dataRowMinHeight and dataRowMaxHeight

* Make dataRowHeight a computed getter

* Remove get only dataRowHeight from hashCode...

* Update deprecated after

* Add new line at end of AUTHORS

* Apply suggestions from code review

* Update packages/flutter/test/material/data_table_test.dart

---------

Co-authored-by: Kate Lovett <katelovett@google.com>
2023-02-23 19:32:29 +00:00
Greg Price
97938859e0
Fix buggy formula for critically-damped springs (#120488)
Fixes #109675.

This formula would produce an initial velocity quite different
from the one specified as an argument.

To update the test, I computed the expected results separately
by using the physical formula.

Happily, the framework by default never ends up actually exercising
this code.  Of the four SpringDescription call sites within the
framework, two are explicitly overdamped; the other two are by
design critically damped, but due to rounding they end up being
treated as (very slightly) overdamped too.  Details here:
  https://github.com/flutter/flutter/issues/109675#issuecomment-1423674855

So the only way an app could be affected by this bug is if it called
a SpringDescription constructor itself, and managed to create a spring
description where the distinguishing formula in _SpringSolution comes
out exactly equal to zero.  It's likely nobody has ever shipped such
an app, because the behavior this produces would be so wildly wrong
that it'd be hard to miss when exercised.

Co-authored-by: Kate Lovett <katelovett@google.com>
2023-02-23 19:29:32 +00:00
chunhtai
660992a161
Fix text.rich to merge widget span (#113461)
* Fix text.rich to merge widget span

* migrate to new API

* update

* addressing comment

* addressing comments

* update

* addressing comment

* Update
2023-02-23 17:38:52 +00:00
Taha Tesser
56e1bddc59
Fix SliverAppBar.medium & SliverAppBar.large title overlap with leading/actions widgets, leading width, and title spacing (#120780)
* Fix `SliverAppBar.medium` & `SliverAppBar.large` title overlap with leading/actions widgets, leading width, and title spacing

* Add `titleSpacing` theme tests and consolidate multiple tests for the same widgets
2023-02-23 17:12:11 +00:00
Eilidh Southren
0c1ed75915
Remove newline (#121090)
* remove newline

* update crswap

* add const constructor

* update const
2023-02-23 10:39:41 +00:00