Commit graph

3047 commits

Author SHA1 Message Date
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