Commit graph

3350 commits

Author SHA1 Message Date
Casey Hillers 370fc483e3
Revert "Refactor StrokeAlign to allow double values." (#109591) 2022-08-16 06:56:07 +00:00
yaakovschectman bba2ac83b1
Add Compilation DeviceLab test for Windows (#109540)
* Add Windows compilation test (hello_world_windows__compile)

* Add devicelab target to .ci.yaml

* Bringup on new target

* Add license to generated files

* Indicate test ownership

* Delete asset from repo

* Add Windows compilation test (hello_world_windows__compile)

* Add devicelab target to .ci.yaml

* Bringup on new target

* Add license to generated files

* Indicate test ownership

* Delete icon

* Use path.basename

Re triggering tests

* Update test owner to desktop team
2022-08-15 16:26:02 -04:00
Bernardo Ferrari dd8573b871
Refactor StrokeAlign to allow double values. (#108339) 2022-08-15 20:23:20 +00:00
Christopher Fujino b79c216845
[flutter_tools] Pin path_provider_android (#109429) 2022-08-12 01:18:41 +00:00
Christopher Fujino 675f67d611
Revert "Roll pub packages (#109408)" (#109424)
This reverts commit da036da69f.
2022-08-11 16:29:05 -07:00
Qun Cheng 625d96a1c6
Revert "Set IconButton.visualDensity default to VisualDensity.standard (#109349)" (#109421)
This reverts commit 3070baf175.
2022-08-11 15:29:19 -07:00
Flutter GitHub Bot da036da69f
Roll pub packages (#109408) 2022-08-11 20:53:11 +00:00
Peter Eliasson 41f13d2087
Free library even if proc lookup fails (#108312) 2022-08-11 20:45:03 +00:00
Qun Cheng 3070baf175
Set IconButton.visualDensity default to VisualDensity.standard (#109349)
* Set IconButton's visualDensity to standard

Co-authored-by: Qun Cheng <quncheng@google.com>
2022-08-11 10:59:51 -07:00
Ian Hickson 9b2668a451
Minor fix compendium (#107874) 2022-08-11 02:33:07 +00:00
Greg Spencer e3b42e5e2f
Revert "Roll pub packages (#109348)" (#109363)
Committing to green the build.
2022-08-10 19:15:18 -07:00
Flutter GitHub Bot 5a06e2bd5f
Roll pub packages (#109348) 2022-08-10 22:40:38 +00:00
Ian Hickson 7ded3d91da
API documentation cleanup (#108500) 2022-08-10 22:03:20 +00:00
Bruno Leroux 8faccb8a82
Reland: "Add example and troubleshooting comment for showSnackBar" (#105195) 2022-08-09 22:06:05 +00:00
Pierre-Louis de8a2fa6a7
Update packages (#109054)
In particular, to get `material_color_utilities` `0.2.0`.
2022-08-05 15:21:03 -04:00
xubaolin c4df6b6d09
[SelectionOverlay]Move the debug statement to the scope of the assertion. (#108508) 2022-08-02 04:37:04 +00:00
Flutter GitHub Bot d9ce9be0e2
Roll pub packages (#108582) 2022-07-29 19:07:04 +00:00
Greg Spencer f5e4d2b427
Replace FocusTrap with TapRegionSurface (#107262) 2022-07-29 16:00:07 +00:00
Taha Tesser 76df7368b5
Update Chips examples and rename files (#108538) 2022-07-29 07:17:06 +00:00
Gary Qian 7cfbdadc33
Reland "Upgrade Gradle and AGP versions to 7.5/7.2 and migrate benchmarks+examples" #108472 (#108510) 2022-07-28 19:38:07 -07:00
Michael Goderbauer 10a7c9ba22
Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00
Greg Spencer 07de84f014
Add StarBorder and StarBorder.polygon, with example. (#108489) 2022-07-28 00:01:05 +00:00
Kate Lovett 716533925b
Revert "Reland "Upgrade Gradle and AGP versions to 7.5/7.2 and migrate benchmarks+examples" #108355 (#108472)" (#108488)
This reverts commit 1f8c490c82.
2022-07-27 17:20:20 -05:00
Gary Qian 1f8c490c82
Reland "Upgrade Gradle and AGP versions to 7.5/7.2 and migrate benchmarks+examples" #108355 (#108472) 2022-07-27 14:23:09 -07:00
Flutter GitHub Bot f82178e2d2
Roll pub packages (#108325) 2022-07-27 17:22:07 +00:00
Zachary Anderson 1e69683688
Revert "Reland "Upgrade Gradle and AGP versions to 7.5/7.2 and migrate benchmarks+examples" (#108355)" (#108407)
This reverts commit c4b3625d62.
2022-07-26 19:30:28 -07:00
Gary Qian c4b3625d62
Reland "Upgrade Gradle and AGP versions to 7.5/7.2 and migrate benchmarks+examples" (#108355) 2022-07-26 16:23:08 -07:00
Jenn Magder 70aaff1217
Set Xcode build script phases to always run (#108331) 2022-07-26 19:20:07 +00:00
Bryan Oltman e3d08fb6d3
Hide the debug banner in the PopupMenuButton example (#108324)
* Hide the debug banner in the PopupMenuButton example

* Add test to verify that debug banner is not shown
2022-07-26 10:43:35 -04:00
Tong Mu 4056d3ffde
Explain the "patching" protocol in KeyMessageManager.keyMessageHandler and add an example (#105280) 2022-07-26 05:42:05 +00:00
Zachary Anderson d155bc1bad
Revert "Upgrade Gradle and AGP versions to 7.5/7.2 and migrate examples/tests (#108197)" (#108349)
This reverts commit ca6cecf034.
2022-07-25 22:20:37 -07:00
Gary Qian ca6cecf034
Upgrade Gradle and AGP versions to 7.5/7.2 and migrate examples/tests (#108197) 2022-07-25 15:23:08 -07:00
hangyu e74b9b5bef
Migrate InputDecorator to Material 3 (#107943)
* Support material 3 in inputDecorator

* Format polish

* format polish

* update input_decorator_test

* revert pub

* style update

* style polish

* default before base

* resolve comments

* Update text_field.2.dart

* move text styles into M2 theme

* add error style

* fix typo

* resolve comments

* fix g3 test
2022-07-26 01:35:38 +08:00
Michael Goderbauer 8a7b35933c
flutter update-packages --force-upgrade + analyzer fix (#108198) 2022-07-25 10:10:31 -07:00
Rich Kadel 549f70c914
Remove outdated Fuchsia concepts (#107335)
Fuchsia will soon remove all support for Component Framework version 1
components (recognized by component manifests ending in `.cmx`).
Notably, some of the `flutter` tool commands for Fuchsia devices--
notably, but not limited to, those related to CFv1--are outdated, and
either do not work today or soon won't work.

This PR removes the outdated components and commands, replacing some
with the newer version, or simply removing the non-working features,
in some cases.
2022-07-22 16:42:48 -07:00
Flutter GitHub Bot 94572b5d69
Roll pub packages (#107984) 2022-07-22 23:28:06 +00:00
Marcel Čampa 0c40945a67
Implement CupertinoListSection and CupertinoListTile (#78732) 2022-07-19 18:46:30 -05: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 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
Taha Tesser c251856c89
Update ListTile docs for color animation issues and add example (#106955) 2022-07-13 08:09:07 +00:00
Taha Tesser 66cd09dd82
Update PopupRoute docs and add an example (#106948) 2022-07-12 08:59:05 +00:00
Flutter GitHub Bot b748d1fb1a
Roll pub packages (#107185) 2022-07-07 17:46:07 +00:00
Qun Cheng 16bbef188f
Migrate IconButton to Material 3 - Part 2 (#106437) 2022-07-06 18:14:07 +00:00
Christopher Fujino 19ac08dcd7
manual pub package roll; remove test_api pin, unblock bumping dwds (#106887) 2022-07-06 17:28:07 +00:00
stuartmorgan f3717d70d7
Enable Windows platform_channel test (#106973) 2022-07-06 14:21:07 +00:00
Hari07 46c4fc1164
Animated fractionally sized box (#106795) 2022-07-01 00:50:05 +00:00
stuartmorgan 6c6ae06381
Add Windows to the platform_channels example (#106754) 2022-06-30 14:54:07 +00:00
Alexandre Ardhuin bbdf617034
Export public API types from services/*.dart library (#106316) 2022-06-28 20:26:06 +00:00
Youssef Attia 28d271ecfc
Updated positional parameter ordering for IndexedStack example (#106687) 2022-06-27 13:40:24 -07:00
Loïc Sharma 6026eea9a4
[Windows] Flow version information to the build output (#106145)
Previously developers had to edit their `Runner.rc` file to update their executable's version information. Now, version information will automatically be set from `flutter build`'s arguments or the `pubspec.yaml` file for new projects. 

Addresses https://github.com/flutter/flutter/issues/73652
2022-06-27 10:45:56 -07:00
Kate Lovett 9f4b9bfd49
Apply PrimaryScrollController updates to SingleChildScrollView (#106430) 2022-06-23 17:27:09 +00:00
Aman Verma 3022db2bf3
docs: Add more potential use case for Bottom Navigation Bar (#99644) 2022-06-23 17:17:06 +00:00
Darren Austin 2532584bf3
Update parameters to the styleFrom button methods. (#105291)
* Update parameters to the `styleFrom` button methods.

* Updated the Flutter fix data to point to this PR.

* Updated handling of background color to better maintain backwards compatibility with previous API.
2022-06-21 19:08:22 -07:00
Jonah Williams 1572773729
Update package:archive and pin test_api (#106157) 2022-06-16 21:23:08 -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
Hans Muller d8783ff4c2
Reland Added MaterialStatesController, updated InkWell et al. #103167 (#105656) 2022-06-10 08:12:49 -07:00
Kate Lovett 784520bd04
Updating PrimaryScrollController for Desktop (#102099) 2022-06-09 16:49:45 -05: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
Youssef Attia e9230bada5
Small typo with text on the source of an example text file (#105326)
* Small typo with text on the source of an example text file

* Added short paragraph on example location

* Keep line length around 80 chars

* Moved description of adding tests to a different paragraph

* Removed whitespace

* small 80 chars fix

* small 80 chars fix

* fixed col length

* trailing whitespace
2022-06-06 13:24:00 -07:00
Elliott Brooks (she/her) 67a18250b1
Update packages with update-packages (#105325) 2022-06-06 10:49:39 -07:00
Pierre-Louis 15aa3bfda3
turn on curly_braces_in_flow_control_structures for develop-facing code (#105113) 2022-06-02 11:25:40 +02:00
Hans Muller 9cf042ec74
Revert "Added MaterialStatesController, updated InkWell et al. (#103167)" (#105138)
This reverts commit 180566f2e5.
2022-06-01 17:19:16 -07:00
Danny Tuppeny c5b5abe1d2
Update dependencies with 'flutter update-packages --force-upgrade' (#105009) 2022-06-01 11:33:11 -07:00
Alexandre Ardhuin 552c50e67c
more const immutable classes (#104988)
* more const immutable classes

* more const constructors in dev/ and examples/
2022-05-31 21:56:24 +02:00
Taha Tesser 71a9ccbf2c
InheritedModel: Add a complete interactive example and update snippet for null safety (#104174) 2022-05-30 06:13:10 -07:00
Kate Lovett 2aa7317296
Revert "Add error message and documentation when a SnackBar is off screen" (#104843) 2022-05-27 11:58:14 -07:00
Darren Austin c27a1a70f3
Update material_color_utilities dependency to 0.1.5. (#104771) 2022-05-27 11:18:12 -07:00
Hans Muller 180566f2e5
Added MaterialStatesController, updated InkWell et al. (#103167) 2022-05-27 08:38:42 -07:00
Tim Sneath fdf9b6e93d
Update Windows manifest to declare Windows 11 (#104768) 2022-05-26 17:40:07 -07:00
Anna Gringauze 5cd979e441
Retry getting tabs in chrome launcher on ConnectionException (#104218) 2022-05-26 15:20:11 -07:00
Bruno Leroux bc53e6202e
Add error message and documentation when a SnackBar is off screen (#102073) 2022-05-26 05:15:07 -07:00
Pierre-Louis 308b543783
Use curly_braces_in_flow_control_structures for sample code (#104617)
* use `flutter_lints` for sample code

* update packages

* Revert "update packages"

This reverts commit 14da3c69a8.

* revert
2022-05-26 08:59:37 +02:00
Greg Spencer 406d86b4ba
PlatformMenuBar changes to bring it into line with upcoming MenuBar implementation (#104565)
When I was doing the MenuBar implementation, I made some changes to the PlatformMenuBar to allow it to understand shortcuts a little more, and to deprecate the body parameter rename it to child to match most other widgets.

These are those changes, separated out because they are separable, and I'm trying to make the MenuBar PR smaller.
2022-05-25 14:48:28 -07:00
Taha Tesser 97452d1a10
Switch: Add an interactive example (#103045)
* `Switch`: Add an interactive examples

* Update docs

* Update doc
2022-05-25 10:40:31 +02:00
Bruno Leroux 1e0a1a2661
Add an example and update GestureDetector documentation (#102360) 2022-05-24 16:38:09 -07:00
chunhtai efb9368573
Supports global selection for all devices (#95226)
* Support global selection

* addressing comments

* add new test

* Addressing review comments

* update

* addressing comments

* addressing comments

* Addressing comments

* fix build
2022-05-24 13:53:55 -07:00
Taha Tesser 5739bf4fab
RefreshIndicator: Add notificationPredicate example (#103894) 2022-05-24 04:58:06 -07:00
Darren Austin b08b88ce6c
Add support for Material 3 medium and large top app bars. (#103962)
* Add support for M3 AppBar 'Medium' and 'Large' types.

* Updates from review feedback.

* Updated from review feedback.
2022-05-20 14:02:25 -07:00
Darren Austin 17e2fce1cf
Add const MaterialStatePropertyAll class. (#104127) 2022-05-19 09:35:33 -07:00
Taha Tesser 3f5bd7d89e
Add Material 3 AppBar example (#102823) 2022-05-19 00:13:09 -07:00
Michael Goderbauer 2cbad4b3ae
Final chapter: migrate api doc samples to super-parameters (#104007) 2022-05-17 15:35: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
Chris Bracken b04bdd0b02
[macOS] Adds macOS project files to layers example (#102539)
Adds macOS support to the layers examples collection.

Issue: https://github.com/flutter/flutter/issues/84306
2022-05-13 14:17:01 -07:00
Michael Goderbauer 8bec125aaf
Avoid analyzing API example code twice, clean-up (#103548) 2022-05-11 21:27:45 -07:00
Jonah Williams c1b909e3fc
add image load benchmark (#103459) 2022-05-10 22:49:08 -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
Bryan Oltman 89f755c2df
Replace references to LinearProgressIndicator in CircularProgressIndicator example (#103349)
* Replace references to LinearProgressIndicator in CircularProgressIndicator example

* Add test

* fix copyright header
2022-05-09 16:04:02 -04: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
Taha Tesser 803f9959d8
Update Cupertino examples and add missing tests (#103128) 2022-05-07 00:29:10 -07:00
Taha Tesser 9489b64cbb
DropdownButton: Update selectedItemBuilder example to show case item alignment and update DropdownButton examples (#102748) 2022-05-06 00:14:08 -07:00
Taha Tesser cd6b2a3543
Improve Hero examples (#103095) 2022-05-05 23:39:10 -07:00
Taha Tesser d80f3e3921
Cupertino examples improvements and clean up (#103044) 2022-05-05 08:22:53 +02:00
Taha Tesser 27fee486ef
CupertinoSwitch: Add an interactive example (#103043)
Update
2022-05-05 07:59:55 +02:00
Taha Tesser 3ed0bbed5a
CupertinoActivityIndicator: Add an interactive example (#103040) 2022-05-05 07:59:29 +02:00
Taha Tesser 86e55df7f2
CupertinoFormRow: Add an interactive example (#103041)
* `CupertinoFormRow`: Add an interactive example

* fix typo

* Update docs
2022-05-05 07:58:53 +02:00
Taha Tesser 81fd748ac2
CupertinoSearchTextField: Add interactive examples (#103042)
* `CupertinoSearchTextField`: Add interactive examples

* Update docs
2022-05-05 07:58:15 +02:00
Taha Tesser eef4aa7caa
Hero: Add an example for createRectTween (#102650) 2022-04-29 12:39:09 -07:00
Taha Tesser 4ffc41ad10
ToggleButtons: Add interactive example (#100124) 2022-04-29 12:29:07 -07:00
Phil Quitslund 80849adee1
[dev, bots, examples] rename local functions with _s (#102703) 2022-04-28 10:44:06 -07:00
Taha Tesser b1f88a6535
ReorderableListView: fix broken dartpad example & update examples, add tests (#102723) 2022-04-28 10:19:08 -07:00
Alexandre Ardhuin 07f1c20474
add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
Abhishek Ghaskata ab889ab976
macos support for image_list (#84899) 2022-04-21 12:34:07 -07:00
Wyte Krongapiradee a9914e78d2
Explicitly declare android:exported in examples' manifest (#88502) 2022-04-19 16:29:07 -07:00
xubaolin ef5a6da35a
Fix a DataTable crash and improve some docs (#100959) 2022-04-19 04:19:08 -07:00
Bruno Leroux 37b3feea70
Add examples and troubleshooting comment for ClipRRect (#101907) 2022-04-18 10:24:08 -07:00
Taha Tesser d8c9ce9ab4
Add Material 3 FloatingActionButton and FloatingActionButton variants examples (#101105) 2022-04-18 10:09:07 -07:00
Taha Tesser eca09252cd
Add Material 3 NavigationRail example and improve Material 2 example (#101345) 2022-04-18 06:54:07 -07:00
Taha Tesser b8734b1700
Add Material 3 Dialog examples and update existing Dialog examples (#101508) 2022-04-18 04:14:05 -07:00
Jenn Magder 1756ccc541
Set template and migrate apps to iOS 11 minimum (#101963) 2022-04-15 11:34:08 -07:00
Michael Goderbauer cc4cc699f8
Enable use_super_parameters lint (#101074) 2022-04-14 13:26:18 -07:00
Daniel Agbemava 2d9e171870
Update WidgetsBindingsObserver example (#101512) 2022-04-12 10:09:08 -07:00
Michael Goderbauer fa48aed7b2
Bump dwds to 13.1.0 (#101730) 2022-04-11 18:29:14 -07:00
Ahmed Masoud df2781ad18
Use kDebugMode in error_widget.0.dart example (#93408) 2022-04-11 18:04:06 -07:00
Darren Austin c14ca6d321
Migrate common buttons to Material 3 (#100794) 2022-04-08 17:03:21 -07:00
Michael Goderbauer a01424773e
Enable unnecessary_import (#101600) 2022-04-08 12:56:45 -07:00
Greg Spencer efe76a5373
Update key examples to use Focus widgets instead of RawKeyboardListener (#101537)
This updates the examples for PhysicalKeyboardKey and LogicalKeyboardKey to use Focus widgets that handle the keys instead of using RawKeyboardListener, since that usually leads people down the wrong path. Updated the See Also and added tests as well. Also exposed the `physicalKey` attribute for `tester.sendKeyEvent`.
2022-04-08 12:05:41 -07:00
Anna Gringauze 74944d528f
Run update-packages (#101450)
* Run update-packages

* Update DwdsLauncher, disable failing test

* Fix analyze error

Co-authored-by: Jenn Magder <magder@google.com>
2022-04-07 17:07:05 -07:00
Jenn Magder 5788f5ef07
Run CADisableMinimumFrameDurationOnPhone migration on all example apps (#101314) 2022-04-05 15:38:06 -07:00
Greg Spencer 2d9ad26086
Implements a PlatformMenuBar widget and associated data structures (#100274)
Implements a PlatformMenuBar widget and associated data structures for defining menu bars that use native APIs for rendering.

This PR includes:
A PlatformMenuBar class, which is a widget that menu bar data can be attached to for sending to the platform.
A PlatformMenuDelegate base, which is the type taken by a new WidgetsBinding.platformMenuDelegate.
An implementation of the above in DefaultPlatformMenuDelegate that talks to the built-in "flutter/menu" channel to talk to the built-in platform implementation. The delegate is so that a plugin could override with its own delegate and provide other platforms with native menu support using the same widgets to define the menus.
This is the framework part of the implementation. The engine part will be in flutter/engine#32080 (and flutter/engine#32358)
2022-04-04 15:03:10 -07:00
Pierre-Louis 2d89866c50
Minor improvements to ThemeExtension example (#100693)
* Update theme_extension.1.dart

* empty commit

* update color names to be semantic
2022-03-30 16:05:27 +02:00
Michael Goderbauer 91bcf4200e
Prepare examples for use_super_parameters (#100514) 2022-03-29 12:53:08 -07:00
Greg Spencer 22a3b4dc1e
Fix example app names and copyrights (#100795) 2022-03-25 17:40:11 -07:00
Christopher Fujino ef8e3578c1
[flutter_tools] update pub packages (#100726) 2022-03-25 16:45:09 -07:00
Taha Tesser 4526519225
Tooltip: Add an example for TooltipTriggerMode.manual and add tests for existing Tooltip examples (#100554) 2022-03-25 15:51:06 -07:00
Darren Austin 86c02e998b
Migrate Card widget to Material 3. (#100532) 2022-03-22 13:46:56 -07:00
Pierre-Louis 8c1c2f6af5
Introduce Theme extensions (#98033)
* first pass

* x

* x

* address feedback

* support multiple extensions

* add convenience function, Object ⇒ dynamic, lerping

* remove not-useful comment

* fix examples/api lower sdk constraint

* remove trailing spaces

* remove another pesky trailing space

* improve lerp

* address feedback

* hide map implementation from constructor and copyWith

* use iterableproperty

* Revert "hide map implementation from constructor and copyWith"

This reverts commit a6994af004.

* slow down sample

* make theme extension params required

* add null check

* improve documentation

* fix hashCode and operator == overrides

* modify existing tests

* remove trailing spaces

* add all tests except lerping

* fix lerping bug

* add toString to themeExtension example

* add lerping test

* assume non-nullability in example

* address feedback

* update docs

* remove trailing space

* use Map.unmodifiable
2022-03-21 15:26:30 +01:00
Daniel Agbemava a80bad4337
Fix api examples not running on android (#100140) 2022-03-18 09:20:23 -07:00
Yegor c2409797ff
Roll chrome 96 attempt 2 (#100073)
* [web] roll Chromium dep to 96.2

Roll Chromium 96.2.

This is the second attempt to roll it. The previous attempt
(https://github.com/flutter/flutter/pull/99725) failed due to a LUCI
cache issue.

* cache-bust CIPD dependency by changing its name
* specify chrome_and_driver version in canvaskit tests
* fix CRC corruption in kTransparentImage
2022-03-17 13:23:43 -07:00
Zachary Anderson 1223e87f7b
Revert "[web] roll Chromium dep to 96.2 (#99725)" (#99949)
This reverts commit 0d4b73b2e8.
2022-03-10 21:09:49 -08:00
Yegor 0d4b73b2e8
[web] roll Chromium dep to 96.2 (#99725) 2022-03-10 15:45:20 -08:00
Ben Konyi 1880066dd3
Update dependencies (#99874) 2022-03-10 14:13:59 -07:00
Chris Bracken b5d3c43280
Check string size before Win32 MultiByte <-> WideChar conversions (#99729)
This patch adds an additional check to ensure the target length of a string is within the supported maximum string length prior to calling WideCharToMultiByte/MultiByteToWideChar in the Windows runner template.

This is to prevent resize() from failing if called with a count > std::string::max_size().

According to Win32 API docs (WideCharToMultiByte, MultiByteToWideChar) it's the caller responsibility to make sure the buffers are correctly allocated.

Authored by: Tomasz Gucio <tgucio@gmail.com>
2022-03-07 19:57:36 -08:00
Mahesh Jamdade 67a0df41cd
Adds a Listview tile select example (#99165) 2022-03-07 18:56:17 -08:00
Jonah Williams 67f25caf72
Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
Viren Khatri 671aa9e95e
complete migration of flutter repo to Object.hash* (#99505) 2022-03-04 12:56:21 -08:00
Michael Goderbauer 7f2c1cd772
Use PlatformDispatcher.instance over window where possible (#99496) 2022-03-03 14:46:16 -08:00
Taha Tesser d1daa5ddc2
CupertinoSliverNavigationBar: Add example (#99384)
Part of #72926
2022-03-02 18:31:50 -08:00
Michael Goderbauer 00f3f2b14f
More beautiful linear_gradient sample (#99298) 2022-03-02 16:41:21 -08:00
Kate Lovett f8eee10f96
Revert "Draggable can be accepted when the data is null" (#99419) 2022-03-02 10:31:11 -08:00
Mahesh Jamdade 0038a3e29f
Add NavigationBar dartpad example (#97046) 2022-03-01 10:14:09 -08:00
Alberto b44cbe1dd5
feat: Added docstring examples to AnimatedBuilder and ChangeNotifier (#98628) 2022-02-28 12:41:20 -08:00
Emmanuel Garcia 9cb60c9828
Revert "reads min/target sdk versions from localproperties" (#99191) 2022-02-28 11:41:22 -08:00
Jenn Magder d1265ad308
Run update-packages (#99038) 2022-02-25 12:26:16 -08:00
Tacca 37a1aaf8c1
reads min/target sdk versions from localproperties (#98450) 2022-02-24 12:16:15 -08:00
xubaolin 2ad0ac0ef2
Draggable can be accepted when the data is null (#97355) 2022-02-23 15:19:22 -08:00
Ben Konyi 50c4720913
Update dependencies to pull in new vm_service, dds, dwds, coverage, etc (#98513) 2022-02-18 12:32:08 -08:00
Alberto bce6622a20
fix(FocusScope): Example fix (#98668) 2022-02-17 12:09:20 -08:00
Michael Goderbauer ac1fc234ea
Update example code and docs for InteractiveViewer.builder (#98623) 2022-02-16 17:25:17 -08:00
Taha Tesser 2097fe64f0
CupertinoPicker: Update example (#98525) 2022-02-15 20:20:22 -08:00
Hans Muller db4c98fcb0
Added a NavgationBar example with nested Navigators (#98440) 2022-02-15 13:28:47 -08:00
Taha Tesser fd4b1e86e8
CupertinoSlidingSegmentedControl: Add an interactive example (#98156) 2022-02-15 10:05:11 -08:00
Taha Tesser 7943ae5502
CupertinoSegmentedControl: Add an interactive example (#98154) 2022-02-15 09:30:19 -08:00
Taha Tesser dfd42444e9
Update CupertinoTextField example (#93738) 2022-02-15 09:10:20 -08:00
Taha Tesser ee0bbf4789
Add CupertinoPicker interactive example (#93622) 2022-02-15 06:25:20 -08:00
Taha Tesser 513c6cd7a8
CupertinoAlertDialog: Update sample (#98357) 2022-02-14 16:25:20 -08:00
Taha Tesser 7d21dbf5e0
CupertinoActionSheet: Update sample (#98356) 2022-02-14 16:10:08 -08:00
Taha Tesser 19a380ffe7
Add CupertinoSlider example (#93633) 2022-02-14 12:10:13 -08:00
Pierre-Louis 312085a19a
Update repo generated_plugins.cmake (#98034) 2022-02-09 15:15:27 +01:00
Ian Hickson ab89ce285f
Clean up the bindings APIs. (#89451) 2022-02-03 14:55:15 -08:00
Harry Terkelsen 03f1d37935
Add a benchmark for a scrolling list of Links (#94638) 2022-02-03 14:38:58 -08:00
Pierre-Louis a22cf5d6b9
Update packages (#97592)
* update packages

* implement

* remove trailing spaces

* Revert "remove trailing spaces"

This reverts commit d3bffbef57.

* Revert "implement"

This reverts commit 6b6172a827.
2022-02-02 09:16:05 +01:00
Taha Tesser e5f9d5bd26
Update PopupMenuButton example (#96681) 2022-01-28 14:10:14 -08:00
Taha Tesser fc71ec55ee
Add CupertinoTimerPicker Interactive Example (#93621) 2022-01-28 06:35:17 -08:00
Taha Tesser 120d25f786
RefreshIndicator: Add an interactive example (#97254) 2022-01-28 02:40:06 -08:00
Kate Lovett 03da339ffe
Deprecate Scrollbar isAlwaysShown -> thumbVisibility (#96957) 2022-01-24 14:25:15 -08:00
Michael Goderbauer 5684b9f69e
Enable no_leading_underscores_for_local_identifiers (#96422) 2022-01-21 14:43:59 -08:00
Greg Spencer 017ed1792b
Move examples from dart:ui ui/lib/text.dart to examples/api (#96557)
This extracts the examples that are in flutter/engine@main/lib/ui/text.dart into examples in the examples/api/lib/ui directory and adds some simple tests for them.

Also, fixes some inconsistent test file naming.

This is step 1: the next step is to remove the examples from the dart:ui code.
2022-01-14 15:42:54 -08:00
Greg Spencer 5012c99df5
Add example for CustomMultiChildLayout (#96632)
This adds a simple example to CustomMultiChildLayout that lays out colored containers in a cascade.
2022-01-14 10:54:15 -08:00
Emmanuel Garcia f01556ab75
Bump Android dependencies that rely on Jcenter (#96558)
* Bump video_player in flutter gallery

* Update packages

* Update dependencies

* Bump device_info

* Update dev/devicelab/bin/tasks/build_ios_framework_module_test.dart

Co-authored-by: Jenn Magder <magder@google.com>

* Update dev/devicelab/bin/tasks/module_custom_host_app_name_test.dart

Co-authored-by: Jenn Magder <magder@google.com>

* Update dev/devicelab/bin/tasks/module_test.dart

Co-authored-by: Jenn Magder <magder@google.com>

* Remove deprecated device_info from ios-frameworks test

Co-authored-by: Jenn Magder <magder@google.com>
2022-01-12 20:13:32 -08:00
Jenn Magder 3e6e996f9e
Run update-packages --force-upgrade (#96325) 2022-01-10 13:55:16 -08:00
Markus Aksli 75e2470302
Add Ink.image clip examples (#93799) 2021-12-17 02:54:14 -08:00
Sam Rawlins 412e329af2
Correct missing return statements in nullably-typed functions (#95428) 2021-12-16 15:29:17 -08:00
Taha Tesser 139a4d3992
Add CupertinoDatePicker Interactive Example (#93509) 2021-12-15 13:14:12 -08:00
Dan Field bf60291493
Improve sync*/async* opt outs (#95286) 2021-12-14 19:00:52 -08:00
Rami 1a3dc1b32a
Update color scheme seed generation to use color utils package (#95175)
* Update color scheme seed generation to use color utils package
2021-12-14 13:53:36 -08:00
Greg Spencer bbc21fe3ed
Fix some issues with samples (#95044) 2021-12-13 09:29:09 -08:00
Dan Field ab0a335973
Ban sync*/async* from user facing code (#95050) 2021-12-12 13:05:03 -08:00
Markus Aksli f704b0d708
Add InputDecorator label color on error examples (#93480) 2021-12-08 17:24:08 -08:00
Anna Gringauze d7466d8963
Update dwds and other packages (#94634) 2021-12-07 14:29:07 -08:00
Michael Thomsen bb906b6b4f
Roll packages to pick up new platform package (#94603) 2021-12-06 10:34:56 +01:00
Ian Hickson 5ddc00cc03
Use EnumName.name where possible. (#94496) 2021-12-03 16:39:04 -08:00
Michael Goderbauer f4a44a9d68
Reland "Mixin for slotted RenderObjectWidgets and RenderBox (#94077)" (#94632) 2021-12-03 14:39:02 -08:00
Michael Goderbauer 885a1482f8
Revert "Mixin for slotted RenderObjectWidgets and RenderBox (#94077)" (#94620)
This reverts commit 988959dad9.
2021-12-03 10:39:11 -08:00
Michael Goderbauer 988959dad9
Mixin for slotted RenderObjectWidgets and RenderBox (#94077) 2021-12-03 09:29:06 -08:00
Darren Austin 418cd95661
Added material_color_utilities as a dependency for flutter package. (#94377) 2021-12-01 14:19:04 -08:00
Nate Bosch 6d1a840bc5
Roll packages, remove unnecessary overrides (#94172) 2021-11-24 14:43:05 -08:00
Mouad Debbar 30b6b9e7f0
Revert "Update Xcode toolsVersion encoded in generated Main.storyboard (#94084)" (#94164)
This reverts commit 6a3ea7eb83.
2021-11-24 10:12:53 -05:00
Jenn Magder 6a3ea7eb83
Update Xcode toolsVersion encoded in generated Main.storyboard (#94084) 2021-11-23 17:38:02 -08:00
Andrei Diaconu 924336fcee
Reland 3: Display Features (#93240) 2021-11-20 15:48:06 -08:00
Taha Tesser 7dcdfe6304
Add CupertinoButton interactive example (#93625) 2021-11-16 15:08:05 -08:00
gaaclarke f23e515861
Fatten up multiple_flutters memory footprint (#93350)
Increased the memory size of multiple_flutters to help identify regressions in performance

This is not a regression and will affect benchmark's readings.
2021-11-12 11:11:44 -08:00
Darren Austin e685c938a3
Replaced the reference to primaryVariant in code example as it will soon be deprecated. (#93351) 2021-11-09 17:49:40 -08:00
Hans Muller f4f23ecb59
Added SharedAppData to the widgets library (#93175) 2021-11-08 12:27:14 -08:00
Zachary Anderson 2468f315e0
Revert "Reland: display features (#93117)" (#93204)
This reverts commit 9038fac960.
2021-11-06 22:46:46 -07:00
Hans Muller 0815da4d38
Revert "Added widgets/AppModel" (#93161) 2021-11-05 16:13:03 -07:00
Andrei Diaconu 9038fac960
Reland: display features (#93117) 2021-11-05 15:54:25 -07:00
Jacob MacDonald a4fa2affe9
Update packages (#92924) 2021-11-05 12:03:03 -07:00
Zachary Anderson 7779ad3c60
Revert "Reland engine display features (#89511)" (#93098)
This reverts commit 058dfd49a0.
2021-11-04 23:05:45 -07:00
Andrei Diaconu 058dfd49a0
Reland engine display features (#89511) 2021-11-04 18:37:55 -07:00
Hans Muller 389a12f4e0
Added widgets/AppModel (#92297) 2021-11-03 20:23:02 -07:00
Taha Tesser 6fc988146b
[ReorderableListView] Update doc with example to make it clear proxyDecorator can overriden to customise an item when it is being dragged. (#91837) 2021-11-03 17:36:50 -07:00
LongCatIsLooong ffcd32ebb6
Move text editing Actions to EditableTextState (#90684) 2021-11-03 11:11:32 -07:00
Emmanuel Garcia c97a8622bf
Update lockfiles (#92800) 2021-11-01 08:58:13 -07:00
Greg Spencer 5883a6628d
Differentiate between TalkBack versions for semantics tests. (#92602)
Makes the android_semantics_testing test not fail for newer versions of Talkback.

Also, since the test now depends on pub_semver, upgraded the pubspec files.

The only substantive changes in the PR are in dev/integration_tests/android_semantics_testing/test_driver/main_test.dart
2021-10-29 16:38:09 -07:00
Taha Tesser 13d14f1843
[doc] Update suffixIcon/prefixIcon for alignment with code snippet (#91998) 2021-10-27 00:38:02 -07:00
Emmanuel Garcia 4d79bb02c4
Bump Kotlin version in templates and projects (#92052) 2021-10-25 13:13:03 -07:00
Emmanuel Garcia d7631275fe
Bump targetSdkVersion to 31 and organize static values (#91719) 2021-10-15 13:41:48 -07:00
Ian Hickson 299d484903
Enable more lints (#91642) 2021-10-14 22:03:03 -07:00
Bjarte Bore 64b0cfda3d
Added support for MaterialState to InputDecorator (#91762) 2021-10-14 13:26:45 -07:00
Taha Tesser abfcc84e58
[CupertinoTabBar] Add an official interactive sample (#91763) 2021-10-13 13:38:02 -07:00
Danny Tuppeny f8f96a4f80
Run "flutter update-packages --force-upgrade" to get latest DDS (#91736) 2021-10-13 10:58:04 -07:00
Ian Hickson bb5cbdc635
Enable depend_on_referenced_packages lint (#91653) 2021-10-12 11:28:02 -07:00
Ian Hickson 6d5fc420b6
Enable sort_child_properties_last lint (#91585) 2021-10-11 21:23:02 -07:00
Ian Hickson 9421627324
Enable only_throw_errors (#91567) 2021-10-11 14:13:03 -07:00
Ian Hickson 7b01346c5c
Enable no_default_cases lint (#91530) 2021-10-11 10:23:04 -07:00
Ian Hickson 61a0add286
Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
Zachary Anderson b9d2177da0
Revert "Enable avoid_redundant_argument_values lint (#91409)" (#91461)
This reverts commit 5fd259be24.
2021-10-07 21:11:07 -07:00
Ian Hickson 5fd259be24
Enable avoid_redundant_argument_values lint (#91409) 2021-10-07 20:13:02 -07:00
Zachary Anderson 5188df0821
Revert gradle roll (#91459)
* Revert "Mark last failing test after gradle update as flaky. (#91423)"

This reverts commit 46a52d03bd.

* Revert "fix android template for Gradle 7 (#91411)"

This reverts commit 51d06d537f.

* Revert "Add explicit version for mac and windows openjdk. (#91408)"

This reverts commit bf429f2771.

* Revert "Update the openjdk version used by linux android tests. (#91405)"

This reverts commit 2144ab8b45.

* Revert "Migrate to Gradle 7.0.2 / AGP 7.0.1 (#90642)"

This reverts commit b6459f9b63.
2021-10-07 19:42:24 -07:00
Hans Muller 7d9f7b4ca1
Revert "Added support for MaterialState to InputDecorator (#91182)" (#91448)
This reverts commit 1c374c6598.
2021-10-07 17:08:37 -07:00
Ian Hickson f25b833f27
Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
Mouad Debbar c2ea78d231
Revert "Enable avoid_print lint. (#91332)" (#91438)
This reverts commit cb378edc9e.
2021-10-07 16:16:17 -04:00
Ian Hickson cb378edc9e
Enable avoid_print lint. (#91332) 2021-10-07 09:53:03 -07:00
Taha Tesser b6459f9b63
Migrate to Gradle 7.0.2 / AGP 7.0.1 (#90642) 2021-10-06 17:01:13 -07:00
Bjarte Bore 1c374c6598
Added support for MaterialState to InputDecorator (#91182) 2021-10-06 09:36:06 -07:00
Greg Spencer 8405868db4
Update outdated platform directories in examples (#91125)
The first of three or four changes to update the platform directories of the packages in the Flutter repo that have out date platform code.

This batch includes updating the flutter_view example, updating the sanity check numbers in analyze.dart, and adding some missing Podfiles in the examples. I also eliminated some trailing whitespace in the templates for Android.
2021-10-05 14:52:11 -07:00
Greg Spencer 983cbb273b
Add example test, update example READMEs (#91130) 2021-10-04 13:53:02 -07:00
Greg Spencer fd9ce27748
Clean up examples, remove section markers and --template args (#91133)
This does a cleanup of the examples, removing all of the "section" markers and extra comments that we don't need anymore now that the samples are no longer in the source code. It also removes the --template arguments from the {@tool dartpad} and {@tool sample} directives, since those are no longer used. It converts two examples that I discovered were still embedded into linked examples in the examples folder.

I didn't delete the templates from the snippets config folder yet, because there are still embedded samples in the dart:ui package from the engine that use them. Once dart:ui no longer uses the templates, they can be removed.

I bumped the version of the snippets package to pick up a change that allows removal of the --template argument.
2021-10-04 12:16:17 -07:00
Ian Hickson 126cd7388e
Clean up dependency pins and update all packages (#91109) 2021-10-04 10:28:03 -07:00
Littlegnal 1b73a35fba
Change project.buildDir in standalone subprojects property (#91030) 2021-10-01 17:18:05 -07:00
Christopher Fujino afd84ad425
flutter update-packages (#90994) 2021-09-30 11:38:02 -07:00
Kenzie (Schmoll) Davisson 15967669b2
Add richMessage parameter to the Tooltip widget. (#88539) 2021-09-29 15:31:54 -07:00
Greg Spencer ab2b0851a2
Add smoke tests for all the examples, fix 17 broken examples. (#89021)
This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework.

The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead.

The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
2021-09-28 09:32:06 -07:00
Jenn Magder 1b53f7beba
Migrate iOS project to Xcode 13 compatibility (#90304) 2021-09-22 13:23:05 -07:00
Kate Lovett 65d8dd988d
Update md5 method in flutter_goldens_client (#90154) 2021-09-15 17:42:05 -07:00
Anna Gringauze cd112e551c
Update all packages (#89797) 2021-09-13 12:13:42 -07:00
creativecreatorormaybenot d4c3c7efcd
Fix (Vertical)Divider samples & docs (#89062) 2021-09-08 15:32:04 -07:00
Chris Bracken 1c36271b05
Reduce required Windows CMake version to 3.14 (#89390)
When we landed the CMake minimum requirement constraint for Visual
Studio 2019, we landed it with minimum version 3.15, since that's what
was shipping with the current version of VS 2019 at the time. Looking at
the release notes of earlier versions, it's clear that earlier versions
of Visual Studio 2019 shipped with version 3.14. See:
https://devblogs.microsoft.com/cppblog/visual-studio-cmake-support-clang-llvm-cmake-3-14-vcpkg-and-performance-improvements/

Looking at release notes for CMake 3.15, there are no features/fixes
introduced in that version that we are dependent on.
https://cmake.org/cmake/help/latest/release/3.15.html

Issue: https://github.com/flutter/flutter/issues/88589
2021-09-03 21:05:58 -07:00
Jacob MacDonald 383930c2bc
update package dependencies (#89381) 2021-09-02 14:41:05 -07:00
Craig Labenz 3a1b04952b
fix: refactor Stepper.controlsBuilder to use ControlsDetails (#88538)
* changed controlsBuilder signature

combined all parameters into ControlsDetails class

* sample fixes

* updates to docstrings

* switched to positional argument for stepper.controlsbuilder

* Merge branch 'master' into stepper-builder-fix
2021-08-27 11:26:29 -07:00
Greg Spencer 33403bd28e
Extract Sample code into examples/api (#87280)
This extracts the sample code out from the API doc comments, and places them in separate files on disk, allowing running of the examples locally, testing them, and building of slightly larger examples.
2021-08-25 09:45:12 -07:00
Christopher Fujino efaa9a4637
update-packages --force-upgrade (#88728) 2021-08-23 12:57:08 -07:00
Dan Field c02961256a
Reland remove DefaultShaderWarmup (#88455) 2021-08-18 21:37:03 -07:00
Christopher Fujino 81eb54bf78
update-packages (#88387) 2021-08-17 18:49:32 -07:00
Gary Qian a562b3cb3d
Deferred components integration test app (#88030) 2021-08-16 15:32:05 -07:00
Anna Gringauze cc63c81408
Update all packages (#87579)
- Update dwds and and the rest of the packages

Closes: https://github.com/flutter/flutter/issues/87100
2021-08-03 16:37:48 -07:00
Jim Graham c451b6b0d7
Revert "Perform no shader warm-up by default (#87126)" (#87238)
This reverts commit 32c2e2bad9.
2021-07-29 15:14:16 -07:00
Dan Field 32c2e2bad9
Perform no shader warm-up by default (#87126) 2021-07-27 16:34:05 -07:00