4825 Commits

Author SHA1 Message Date
Marco Scannadinari
57318fa344 Add Robert Penner’s easing functions (#25788)
* Add Robert Penner’s easing functions

These easing functions are the most popular functions in use on the web
and other platforms. Including them in Flutter will encourage users to
create more engaging and attractive animations.
2019-01-08 10:50:06 -08:00
Jonah Williams
0d5ee0560b
use ShapeBorder to draw avatar check on chip (#25984)
Adds avatarBorder property to SelectableChipAttributes and uses the outer path to draw the darkened layer.
2019-01-08 09:24:27 -08:00
jslavitz
e4fb4fe279
Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)" (#26209)
This reverts commit 08538f91f0b7f3f448355e998bb536b06a1d1145.
2019-01-07 17:59:03 -08:00
Hans Muller
cccddf8a03
Fix tristate checkbox false to null transition, test ALL transitions (#26199) 2019-01-07 17:33:56 -08:00
Mary
56ade3d14f Clarify doc for AnimatedContainer (#25790) 2019-01-07 16:21:57 -08:00
jslavitz
08538f91f0
Teach drag start behaviors to DragGestureRecognizer (#23424)
* Adds start behavior option to the drag gesture recognizer and makes it the default option when a drag gesture recognizer is created. Also fixes all the tests to work correctly with the new default behavior.
2019-01-07 15:11:12 -08:00
Alexandre Ardhuin
868ff42821
fix doc-comment snippets (#25579) 2019-01-07 21:44:16 +01:00
Florian Huonder
25af27734f Clearing pendingImages when the cache is cleared or evicted. (#23860) 2019-01-07 09:49:27 -08:00
Michael Goderbauer
d8b57c2ab2
Fix SliverAppBar title opacity and test all cases (#26021) 2019-01-07 09:42:35 -08:00
Hans Muller
4ad3d99b20
Fix a floating snapping SliverAppBar crash (#26101) 2019-01-07 09:04:55 -08:00
Jonah Williams
2e883f8552
Skip formatters if text has not changed (#24779) 2019-01-06 16:38:13 -08:00
liyuqian
d06e4325d8
Explain that BoxDecoration doesn't do clip. (#26089)
Fixes https://github.com/flutter/flutter/issues/22370
2019-01-06 07:20:36 +08:00
Hans Muller
dae7e7b9f2
Fix typos introduced with the TextField.onTap PR, udpated debugFillProperties (#26088) 2019-01-04 14:52:36 -08:00
Hans Muller
0d667859c8
Update material spec references in BottomSheet et al., Scaffold (#26042) 2019-01-04 11:59:25 -08:00
xster
31ed3e5f81
Simplify ImageStream(Completer).removeListener (#25994) 2019-01-04 11:07:18 -08:00
Jonah Williams
d84879d910
Ensure all errors thrown by image providers can be caught by developers. (#25980)
* Ensure all errors thrown by image providers can be caught by developers.

Add an `onError` parameter to the ImageCache.putIfAbsent method.
In the event that an error is thrown when resolving an image, catch if
this parameter is provided. Use the onError parameter to ensure that all
errors thrown are forwarded to the ImageStream error channel instead of
directly into the void.
2019-01-03 12:55:16 -08:00
Kenzie Schmoll
52e5cd24dc
Add didSendFirstFrameEvent service extension. (#25977)
* Add didSendFirstFrameEvent service extension.
2019-01-03 10:38:06 -08:00
Gary Qian
7de513dec3
Add docs to TextStyle for fontFamilyFallback/Custom font fallback (#25992) 2019-01-03 13:03:14 -05:00
TruongSinh Tran-Nguyen
53727866e6 fix #25143 Successive calls to precacheImage() throw an exception (#25159) 2019-01-02 21:05:53 -08:00
Chema Molins
4b87e334d7 Setting icon color to first ListTile in ExpansionTile. Fixes #23053 (#23118) 2019-01-02 10:49:59 -08:00
Michael Goderbauer
28907c7950
Make LicensePage respect the notch (#25799) 2019-01-02 10:01:39 -08:00
Amir Hardon
50f9b88395
Actively reject UiKitView gestures. (#25792)
flutter/engine#7307 changes the engine side of embedded UIView to only
reject gestures when the framework sends a `rejectGesture` message, so
that gesture resolution can done after a touch sequence has ended (see
PR description for flutter/engine#7307 for more details).

This change makes the framework send a `rejectGesture` message to the
engine when a UiKitView rejects a gesture.

I'm planning to land this PR before the engine side change, so right now
it swallows the exception thrown if there is no engine implementation
for `rejectGesture` (which keeps us with the current behavior). After
this change lands I'll land the engine PR, and then clean up the part
that swallows the exception.
2018-12-26 19:34:53 -08:00
Justin McCandless
9161ec42cb
Include cursor in textfield intrinsic width measurement (#25055)
* Include cursor in textfield intrinsic width measurement

* Add cursorWidth assertion, add comment about assumed cursor width, and test null stepWidth
2018-12-26 08:56:02 -08:00
Ian Hickson
1e78c47bc4
Provide some more locations for the FAB. (#24736)
Top left and top right for big FABs, and top left for mini FABs.
2018-12-24 15:22:13 -08:00
Ian Hickson
d05fa45fb2
Undeprecated BigInteger support, but document what it actually does. (#24511)
Also, some code cleanup.
2018-12-23 15:21:43 -08:00
Ian Hickson
e239872561
ClipPath.shape and related fixes (#24816) 2018-12-23 15:21:11 -08:00
Ian Hickson
c5ad1067b7
Handle errors in compute() by propagating them to the Future. (#24848) 2018-12-23 15:20:45 -08:00
Ian Hickson
273364e2bc
Fix merge conflict. (#25718) 2018-12-23 11:13:53 -08:00
Ian Hickson
c0b20a76de
Some minor tweaks to InputDecoration (mainly docs). (#24643) 2018-12-23 10:12:42 -08:00
Gary Qian
2e2f19d3e9
Expose font fallback API in TextStyle, Roll engine 54a3577c0139..215ca1560088 (8 commits) (#25585) 2018-12-21 19:07:01 -08:00
Hans Muller
4857267e65
Updated Shrine demo (#25674) 2018-12-21 17:47:25 -08:00
Alexandre Ardhuin
19ce65eec9
no period after an alone link in see also section (#25604) 2018-12-21 19:23:42 +01:00
xster
b3b764c9d3
Revise Android and iOS gestures on Material TextField (#24457) 2018-12-20 16:54:19 -08:00
Stanislav Baranov
eb7a59b6d7
Switch over to the new name for compilation trace native function (#25594)
* Switch over to the new name for compilation trace native function.

Also see: https://github.com/flutter/engine/pull/7256

* rename

* roll the engine
2018-12-20 16:07:36 -08:00
xster
b6248e26b3
Fix material reference in CupertinoPicker doc (#25584) 2018-12-20 16:07:12 -08:00
xster
d1ec126a3c
Let CupertinoTabScaffold handle keyboard insets too (#25593) 2018-12-20 15:02:53 -08:00
Justin McCandless
ca8ba58b02
Right aligned backspace bug (#25229)
* Fix bug in calculation of downstream text distance when aligned: right

* After having affinity explained to me, match getOffset and tests to
expected behavior

* Clean up test formatting and fix analyze errors

* Improve test comments and reorganize a bit

* Specify logical pixels
2018-12-20 11:03:51 -08:00
Hans Muller
ee3571c946
Update DayPicker,DatePicker doc "see also" sections (#25573) 2018-12-20 08:18:54 -08:00
jslavitz
3d8aec2b99
Adds force press gesture detector and recognizer (#24554)
* adds Force Press gesture detector and recognizer
2018-12-19 20:09:07 -08:00
Gary Qian
a282058d69
Use full textspan tree instead of top level textspan (#25574) 2018-12-19 15:43:53 -08:00
Alexandre Ardhuin
316d74f62d
fix indentation in doc comments (#25521) 2018-12-19 21:12:49 +01:00
MH Johnson
6e15572867
[Material] Theme-able TextStyles for AlertDialog (#25339)
* Themable elevation on dialogs.

* AlertDialogs Title/Content text styles

* Themable elevation on dialogs.

AlertDialogs Title/Content text styles

* finish merging change

* fixing tests

* Docs fixes

* Change const to final to fix analyzer errors

* Fix analyzer errors

* Remove dart:ui import

* Hans Comments
2018-12-19 13:52:10 -05:00
xster
b8a035a3d4
Adds CupertinoTheme (#23759) 2018-12-18 20:36:35 -08:00
Alexandre Ardhuin
e41f1463cd
make see also sections uniform (#25513) 2018-12-18 21:45:20 +01:00
Hans Muller
324f275981
TransitionRoute.canTransitionFrom,To() doc update (#25477) 2018-12-18 11:38:16 -08:00
Gary Qian
a3dd2eee98
Fix typo (#25237) 2018-12-18 10:25:11 -08:00
Gary Qian
f8964ae250
Iterate through potential grapheme cluster lengths in text painter (#24797) 2018-12-18 10:21:04 -08:00
Michael Goderbauer
21c6dda1a1
assert(elevation >= 0.0) and doc clarifications (#25345) 2018-12-18 10:18:48 -08:00
Justin McCandless
89fa4cc502
Add InputDecoration alignLabelWithHint parameter (#24993)
* InputDecorator param for alignment of label

* Put baseline/center code in the right place where label is layed out

* Fix existing test

* Test top label positioning

* Rename to alignLabelWithHint, and make it a bool

* Test for TextField with and without alignLabelWithHint set

* alignLabelWithHint in theme as well

* debugFillProperties addition and test

* Small style fixes for review

* Fix analyze const error
2018-12-18 10:04:20 -08:00
Hans Muller
9b6229ab56
TextField.onChanged() doc update (#25473) 2018-12-18 09:03:57 -08:00