Commit Graph

18951 Commits

Author SHA1 Message Date
Loïc Sharma
ede7fc67f5 Add more CMake unit tests (#106076)
Currently CMake is tested entirely through `build_linux_test.dart`. However, CMake is also used for Windows builds. This adds additional "generic" tests:

1. Parsing CMake files
2. Generating CMake config files.

In the future, this will be used to test that generated CMake config files contain the expected version information, which will be used to flow version information to Windows executables.

Part of https://github.com/flutter/flutter/issues/73652.
2022-06-16 11:48:17 -07:00
xubaolin
d3bc2bbcdd [framework] fix RangeSlider regression due to touch slop changes (#106094) 2022-06-16 18:30:06 +00:00
Ross Llewallyn
695cfa4369 TextFormField docs: added proper type with GlobalKey; replaced "we" (#105605) 2022-06-16 08:53:24 -07:00
xubaolin
ea28f287f1 fix a Scaffold extendBodyBehindAppBar update bug (#104958) 2022-06-15 18:33:06 -07:00
J-P Nurmi
512e090dfd Fix confusing typo: extent vs. extend selection (#106002) 2022-06-15 16:58:05 -07:00
Dan Field
a0e333bdc6 Make RenderSliverGrid more accurately report overflow (#104064)
* Make RenderSliverGrid more accurately report overflow

* Update packages/flutter/lib/src/rendering/sliver_grid.dart

Co-authored-by: Kate Lovett <katelovett@google.com>

Co-authored-by: Kate Lovett <katelovett@google.com>
2022-06-15 16:28:46 -07:00
Christopher Fujino
589dd8028b [flutter_tools] print override storage warning to STDERR instead of STDOUT (#106068) 2022-06-15 23:22:06 +00:00
Tong Mu
e55aa0e85c Allow DoNothingIntent and DoNothingAndStopPropagationIntent to be used in a const environment (#105983) 2022-06-15 13:33:05 -07:00
Jonah Williams
92034482f9 [flutter_tool] partial null safety migration of tool source code (#105798) 2022-06-15 20:02:07 +00:00
Darren Austin
e6d525d51d Updated tokens to v0.101. (#105923) 2022-06-14 23:06:30 -07:00
Tong Mu
576e85ca5e TextInput: Verify TextRange and make method call fail loudly (#104711)
* Fix

* Tests

* Format

* Empty line

* Fix range test

* Fix

* Comments

* trailing spaces

* Fix tests

* Comments
2022-06-14 20:31:09 -07:00
Pierre-Louis
1d53378bec reland #105109 (#105588) 2022-06-14 23:39:30 +02:00
Darren Austin
32981c4caa Added useMaterial3 parameters to the light, dark and fallback ThemeData constructors. (#105944) 2022-06-14 13:09:50 -07:00
Youssef Attia
dc06326caa Fixed issue with Hero Animations and BoxScrollViews in Scaffolds (#105654) 2022-06-13 16:48:09 -07:00
Ahmed Ashour
0be4a8e9ae Remove unneeded date comment in gradle-wrapper.properties (#104061) 2022-06-13 16:43:11 -07:00
Youssef Attia
082560313b Added an example for IndexedStack widget (#105318)
* Added an example for IndexedStack

* Added tests for the IndexedStack example

* Fixed type issue for onSubmitted callback functions

* Fixed documentation and moved files to their appropriate places

* Fixed documentation and moved files to their appropriate places

* Moved test files to their appropriate places

* Moved test files to their appropriate places

* Fixed file path in documentation

* Remove trailing space

* Formatting changes

* Remove extra line

* Further formatting changes

* Further formatting changes

* fix comma and inline

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>

* Formatting

* indentation and formatting

* Formatting

* Formatting

* Formatting

* Removed duplicate chevron

* better wording on documentation

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

* Added testing for state preservation

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>
2022-06-13 16:38:37 -07:00
Mahesh Jamdade
38df107b8c Add enabled property to CheckboxlistTile (#102314) 2022-06-13 16:38:14 -07:00
Christopher Fujino
d31c250e38 [flutter_tools] Fix leaky test (#105927) 2022-06-13 16:12:29 -07:00
Anurag Roy
1ea72163b2 [flutter_tools] Remove redundant/unused code in version.dart (#105111) 2022-06-10 13:38:07 -07:00
cedvdb
feec13a168 Remove duplicated key in _IconButtonM3 (#105577) 2022-06-10 11:38:10 -07:00
Justin McCandless
213bf37a4d Text handle drag swap on Apple platforms (#105069)
Dragging the base text selection handle on Apple makes it the extent.
2022-06-10 09:20:51 -07:00
Hans Muller
d8783ff4c2 Reland Added MaterialStatesController, updated InkWell et al. #103167 (#105656) 2022-06-10 08:12:49 -07:00
Alexandre Ardhuin
1b65ba5380 exports public API types from scheduler/*.dart (#105737) 2022-06-09 16:03:07 -07:00
Elliott Brooks (she/her)
fe57704594 Enable skipped test for Dart URI logs from DWDS (#105274) 2022-06-09 15:03:11 -07:00
Kate Lovett
784520bd04 Updating PrimaryScrollController for Desktop (#102099) 2022-06-09 16:49:45 -05:00
Lau Ching Jun
d30ad47eda Make flutter attach respect the --dds-port flag. (#105560) 2022-06-09 13:03:09 -07:00
Christopher Fujino
8bea63287a [flutter_tools] add shuffle to hermetic run_tests (#105462) 2022-06-09 12:53:09 -07:00
Alexandre Ardhuin
0cdb3bf582 Export public API types from foundation/*.dart library. (#105648) 2022-06-09 11:53:11 -07:00
Bruno Leroux
0b13f4b4b5 Fix BoxShadow toString() (#105696) 2022-06-09 08:13:12 -07:00
Taha Tesser
f4604fe02b Fix SliverReorderableList item dispose (#105097) 2022-06-09 01:13:10 -07:00
Lasse R.H. Nielsen
c951d2d7a0 Stop using FallThroughError. (#105600) 2022-06-08 22:38:08 -07:00
Bruno Leroux
4dec56b2c9 Fix PageView throws Null check error (#104405) 2022-06-08 14:48:09 -07:00
Alexandre Ardhuin
56c4e3cdd8 add some exports of public API in foundation/serialization.dart (#104231) 2022-06-08 13:33:12 -07:00
Benjamin Lempereur
c150c5a03d TimePicker : Ability to define dialOnly / inputOnly modes (#104491) 2022-06-08 13:18:14 -07:00
Taha Tesser
d72daf602d CupertinoSlider: Add clickable cursor for web (#99557) 2022-06-08 04:03:05 -07:00
Pierre-Louis
8f57f87af5 Improve useMaterial3 documentation (#104815)
* Improve `useMaterial3` documentation

* reverse styles and components

* tweak language around support

* Update theme_data.dart

* remove trailing space

* Update packages/flutter/lib/src/material/theme_data.dart

Co-authored-by: Darren Austin <darren@darrenaustin.org>

* add missing spec links

* remove spec links from useMaterial3

* move defaults section up, rejig things

* spaces no longer trailing

* spaces no longer trailing (2)

Co-authored-by: Darren Austin <darren@darrenaustin.org>
2022-06-08 11:50:19 +02:00
Darren Austin
1ed50b219b Updated tokens to v0.99. (#105545) 2022-06-07 16:12:28 -07:00
xubaolin
0a88d820fd fix a _ScaffoldLayout delegate update bug (#104954) 2022-06-07 15:08:09 -07:00
xubaolin
da19a88ca2 Improve the SliverChildBuilderDelegate docs for folk to troubleshoot. (#103183) 2022-06-07 13:53:07 -07:00
Qun Cheng
66a84d1fed Migrate IconButton to Material 3 - Part 1 (#105176)
* Added standard IconButton for M3 with new ButtonStyle field

* Added IconButton examples for standard, filled, filled_tonal, and outlined types

Co-authored-by: Qun Cheng <quncheng@google.com>
2022-06-07 12:39:22 -07:00
Taha Tesser
1718519188 Fix drawers are draggable on desktop platforms (#100476) 2022-06-07 12:08:07 -07:00
takashi kasai
4b4c876fb9 Text selection located wrong position when selecting multiple lines over max lines (#102747)
Fix for text selection toolbar position in cases with overflowing text.
2022-06-07 10:13:33 -07:00
Taha Tesser
78a0111c20 Fix ButtonStyleButton ink well shape. (#100226) 2022-06-07 08:23:40 -07:00
Zachary Anderson
ac7e29a40f Revert "remove forced compositing from opacity" (#105489) 2022-06-07 00:43:05 -07:00
Gary Qian
696110ba46 Migrate apply (#102787) 2022-06-06 17:38:06 -07:00
Jonah Williams
0d3d8d4bfd [framework] respect debugDisableShadows in slider thumbs (#105467) 2022-06-06 16:38:07 -07:00
Nils Reichardt
64db621980 Remove new keyword in a few files (#104438) 2022-06-06 16:08:06 -07:00
Jiun Kim
a939d9d7a0 [Stepper] Add Alternative Label on horizontal-type Stepper (#91496)
* Add label on Step

* Add _buildLabelText, _labelStyle

* Update _buildHorizontal with _buildLabelText

* Fix Redundant Center widgets

* Fix Unnecessary Column Widget

* Fix Unnecessary import

* Fix Unnecessary Container

* Set label style to bodyText1 to match title style

* Update test for Alternative Label

* Fix code format

* Update label docstring

* Update to test textstyle of label

* Update to Test `TextStyles` of Label

* Fix typo in inline comments

* Update for Stepper type to `horizontal`

* Restore `_buildVerticalHeader`

* Update docstring, `Only [StepperType.horizontal]`

* Update for Readability

* Add `_isLabel` method

* Update `Horizontal height` with `_isLabel`

* Update to make `_buildIcon` centered

* Fix for `curly_braces_in_flow_control_structures`
2022-06-06 14:43:10 -07:00
xubaolin
d73f7ad49c Do not crash if the controller and TabBarView are updated at different phases (build and layout) of the same frame. (#104998) 2022-06-06 14:03:08 -07:00
Gary Qian
e9a3cbf2b4 Migrate abandon (#102789) 2022-06-06 12:58:07 -07:00