208 Commits

Author SHA1 Message Date
Kenzie Davisson
c10164c4b2
Create consts for service extension names so they can be accessed from tooling (#110876) 2022-09-07 15:38:38 -07:00
Jonah Williams
637bd0fb74
[framework] simplify raster widget, rename, combine painters (#109485) 2022-08-25 00:52:08 +00:00
Camille Simon
7db25c36ad
Re-land Add Spell Check to EditableText (#109643) 2022-08-17 16:16:02 +00:00
Jonah Williams
0ba88d8b43
Revert "Add Spellcheck to EditableText (Android) (#109334)" (#109631)
This reverts commit ff9fe35682e10d1067d918770048d28a1f462e0f.
2022-08-16 14:30:03 -07:00
Camille Simon
ff9fe35682
Add Spellcheck to EditableText (Android) (#109334) 2022-08-16 18:22:45 +00:00
chunhtai
2f4e9536bf
Implements browser context menu in selectable region (#108909) 2022-08-10 17:29:06 +00:00
Anthony Oleinik
f014c1e6dc
Loupe Android + iOS (#107477)
* added Magnifier for iOS and Android
2022-08-02 11:43:12 -07:00
Greg Spencer
f5e4d2b427
Replace FocusTrap with TapRegionSurface (#107262) 2022-07-29 16:00:07 +00:00
Jonah Williams
9ae37030ae
Use toPictureSync for faster zoom page transition (#106621) 2022-07-22 15:58:04 +00:00
Jonah Williams
a02cd540f6
Revert "[framework] SliverDecoration" (#107561) 2022-07-13 17:38:07 +00:00
Jonah Williams
881b27e836
[framework] SliverDecoration (#107269) 2022-07-12 02:23:05 +00: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
chunhtai
52fd2412f4
Reland "Add default selection style (#100719)" (#101954) 2022-04-15 16:44:07 -07:00
chunhtai
95e52dac76
Revert "Add default selection style (#100719)" (#101921)
* Revert "Add default selection style (#100719)"

This reverts commit c8057bc5064f54c04cbe054f00904722a7233a63.

* update

* update
2022-04-14 11:31:39 -07:00
chunhtai
c8057bc506
Add default selection style (#100719) 2022-04-13 11:49:09 -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
chunhtai
93fc7f59a5
fix hidden TextSpan with recognizer does not auto scroll (#100494) 2022-03-24 13:39:55 -07:00
Andrei Diaconu
4a7e30f87d
Add DisplayFeatureSubScreen widget (#92907) 2022-02-02 15:20:20 -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 988959dad9b6f07086d5a0903b1fb17ce3d00188.
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
Hans Muller
f4f23ecb59
Added SharedAppData to the widgets library (#93175) 2021-11-08 12:27:14 -08:00
Hans Muller
0815da4d38
Revert "Added widgets/AppModel" (#93161) 2021-11-05 16:13:03 -07:00
Hans Muller
389a12f4e0
Added widgets/AppModel (#92297) 2021-11-03 20:23:02 -07:00
LongCatIsLooong
ffcd32ebb6
Move text editing Actions to EditableTextState (#90684) 2021-11-03 11:11:32 -07:00
Justin McCandless
2382b4c046
Text Editing Model Refactor (#86736)
Simplifying and refactoring parts of RenderEditable. Functionality is the same.
2021-09-07 14:12:38 -07:00
Tong Mu
caf876cf40
Reland: Keyboard events (#87174) 2021-07-29 14:24:03 -07:00
Tong Mu
2f4f170dd2
Revert "Keyboard events (#83752)" (#87171)
This reverts commit 5f792ba17088b356bf0d030844ab09fd7f2b812e.
2021-07-28 02:32:08 -07:00
Tong Mu
5f792ba170
Keyboard events (#83752) 2021-07-26 12:28:05 -07:00
Phil Quitslund
61c30c41b2
fix sort_directives violations (#80817) 2021-04-21 13:49:03 -07:00
Hans Muller
2848126735
Re-land "Added MaterialState.scrolledUnder and support in AppBar.backgroundColor" (#80395) 2021-04-14 09:49:03 -07:00
Hans Muller
989a2f24d2
Revert "Added MaterialState.scrolledUnder and support in AppBar.backgroundColor (#79999)" (#80380)
This reverts commit 17870d5d7eb81bc2021454093e9115c2c0d3c850.
2021-04-13 10:59:10 -07:00
Hans Muller
17870d5d7e
Added MaterialState.scrolledUnder and support in AppBar.backgroundColor (#79999) 2021-04-12 12:44:02 -07:00
Justin McCandless
541bff4058
Text Editing Movement Keys via Shortcuts (#75032)
Text editing shortcuts involving the arrow keys are no longer handled by RenderEditable's RawKeyboardListener, they use the new Shortcuts setup.  First PR in a plan to port all text editing keyboard handling to shortcuts.
2021-03-11 15:52:04 -08:00
Darren Austin
8529e5a05c
New Reorderable list widgets (#74299)
Introduced new widget/ReorderableList and widget/SliverReorderableList widgets.
2021-01-22 21:44:13 -08:00
Justin McCandless
a8471a61f8
Material Desktop Context Menu (#74286)
Very simple right-click context menu for Windows and Linux in a Material-esque style.
2021-01-20 16:29:01 -08:00
Justin McCandless
d9f3d2e846
Cupertino text selection menu customization (#73578)
* Making a custom iOS-style text selection menu is now much easier.
  * Exposes a new widget for the toolbar, a new widget for the buttons, and a new widget for the layout.
2021-01-13 11:14:14 -08:00
Justin McCandless
291ee94506
AutocompleteCore (#62927)
A new widget that chooses an item from a list based on text input. Just the core widget, with Material and Cupertino versions to come.
2020-10-27 08:58:52 -07:00
Alexandre Ardhuin
b007a81ad4
Reland "Nnbd widgets" (#65528)
* Reland "Nnbd widgets (#64672)"

This reverts commit 127e67902e8bbb0dcbfb3351b8fd00f7cbdf0178.

* remove non-nullable enforcement on AsyncSnapshot

* make data param non-nullable for AsyncSnapshot.withData

* make some Text params non-nullable
2020-09-15 16:42:00 +02:00
Michael Goderbauer
127e67902e
Revert "Nnbd widgets (#64672)" (#65488)
This reverts commit e682ec711a8c05fe78157595240b392de339fa32.
2020-09-09 15:18:54 -07:00
Alexandre Ardhuin
e682ec711a
Nnbd widgets (#64672)
* migrate widget to nullsafety

* remove double blank line after license

* address review comments in actions.dart

* nullable ObjectKey.value

* use local variable oldElement

* make State.build non-nullable

* make State.context non-nullable

* newline at eof

* make ProxyWidget.child non-nullable

* make _InactiveElements.debugContains non-nullable

* make Element.depth non-nullable

* make ProxyElement.build non-nullable

* make StatefulElement.state non-nullable

* remove 'Notice that'

* avoid cast of list in RenderObjectElement.updateChildren

* make IndexedSlot.value non-nullable

* avoid cast of list in MultiChildRenderObjectElement.mount

* make some WidgetsApp parameters non-nullable

* hitTest take non-nullable position

* make ScrollableState.position non-nullable

* use _pixels instead of pixels

* make ViewportOffset.pixels non-nullable

* make param and return type of IndexedWidgetBuilder non-nullable

* unused_import

* make context param non-nullable for Builder in animated_list.dart

* make ScrollMetrics.viewportDimension non-nullable

* make ScrollMetrics.{min,max}ScrollExtent non-nullable

* make _Location.file non-nullable

* _WidgetForTypeTests.createElement throw UnimplementedError

* update _NullWidget.build error message

* make _ShortcutsState.manager non-nullable

* Fix childCount issues for NNBD

* fix childCount computation on web

* increase max value on js side to compute childCount

* make aspect parameter of dependOnInheritedWidgetOfExactType nullable

* merge has{min,max}ScrollExtent into hasScrollExtents

* update focus_manager.dart

* address review comments in icon.dart

* address review comments in image.dart

* address review comments in routes.dart

* address review comments in scroll_activity.dart

* update doc comments

* make UserScrollNotification.direction non-nullable and required

* rename hasScrollExtents to hasContentDimensions

* unnecessary late

Co-authored-by: Ian Hickson <ian@hixie.ch>
2020-09-09 10:52:27 +02:00
chunhtai
f9fd71bc78
Implement Router widget and widgets app api (#60299) 2020-08-07 20:26:05 -07:00
Hans Muller
6139708eaf
Added OverflowBar widget (#62350) 2020-07-29 13:41:04 -07:00
Michael Goderbauer
175e5c9aca
Restoration Framework (#60375)
* state restoration

* added example

* typos and analyzer

* whitespace

* more typos

* remove unnecessary import

* whitespace

* fix sample code

* tests for restorationmanager and restorationid

* ++

* typo

* tests for bucket, part1

* rename tests

* more tests

* finished tests for service layer

* remove wrong todo

* ++

* review comments

* tests for Unmanaged and regular scope

* RootRestorationScope tests

* typo

* whitespace

* testing framework

* tests for properties

* last set of tests

* analyzer

* typo

* dan review

* whitespace

* ++

* refactor finalizers

* ++

* ++

* dispose guard

* ++

* ++

* dan review

* add manager assert

* ++

* analyzer

* greg review

* fix typo

* Ian & John review

* ian review

* RestorationID -> String

* revert comment

* Make primitives non-nullable in prep for NNBD
2020-07-28 10:16:36 -07:00
Shi-Hao Hong
17cb865ec6
Revert "Revert "[PageTransitionsBuilder] Fix 'ZoomPageTransition' built more than once (#58686)" (#59992)" (#60245) 2020-06-24 17:03:01 -07:00
Justin McCandless
766e0fa9ef
Export characters (#59620) 2020-06-23 17:43:02 -07:00
renyou
15a28159bc
Revert "[PageTransitionsBuilder] Fix 'ZoomPageTransition' built more than once (#58686)" (#59992)
This reverts commit fe15d1e793cb509f0d616caf1eab19477262b804.
2020-06-23 04:52:58 -07:00
Alex Vincent
fe15d1e793
[PageTransitionsBuilder] Fix 'ZoomPageTransition' built more than once (#58686) 2020-06-16 23:58:01 -07:00
Alexandre Ardhuin
4d7525f05c
Opt out nnbd in packages/flutter (#59186)
* add language version 2.8 in packages/flutter

* enable non-nullable analyzer flag
2020-06-11 14:11:30 +02:00
Justin McCandless
c940282bf3
InteractiveViewer Widget (#56409) 2020-06-02 17:53:05 -07:00