3977 Commits

Author SHA1 Message Date
Ian Hickson
b9a7f1b915
Add a hasListeners to ChangeNotifier (#14946)
I found that some ValueListeners want to know when they should start
doing work (e.g. if the value comes from polling a network resource).
2018-02-28 16:37:36 -08:00
xster
265d0d3c29
Add more haptic feedback varieties (#14829)
* Add more haptic feedback varieties

* tests

* un-meta-ify the test
2018-02-28 16:20:27 -08:00
Phil Quitslund
a3f520e488
Add ‘name’s to widget location Json. (#14993) 2018-02-28 15:33:56 -08:00
najeira
e0956cbdb7 remove "the" duplications (#14952) 2018-02-28 12:21:13 -08:00
Siva
fbf68bbc6d
Roll engine to version b05efc204090f430387398d3c35589571a2fe16b (#14969)
* roll engine version in flutter/flutter to b05efc204090f430387398d3c35589571a2fe16b

* Fix analyzer warnings.
2018-02-28 11:00:37 -08:00
amirh
6993b203c0
Allow changing a clipper's type (ShapeBorderClipper,_BottomAppBarClipper). (#14937)
The downcast was crashing when toggling hasNotch for BottomAppBar.
2018-02-27 17:39:49 -08:00
David Shuckerow
758c221dc3
Doc improvements for animations (#14892)
* Doc improvements for animations
2018-02-26 15:39:42 -08:00
amirh
ed84fb9652
add a bottomAppBarColor to ThemeData (#14859) 2018-02-26 10:41:56 -08:00
amirh
1f3eb5034f
Add a hasNotch flag to BottomAppBar (#14856) 2018-02-23 18:35:40 -08:00
amirh
c6e7ad1cfb
Let the FAB compute the notch even when it doesn't overlap the BAB. (#14852)
The Floating Action Button adds some margin around it for the notch.
So we need to compute a notch even when the FAB and the Bottom App Bar
doe not overlap.
2018-02-23 15:34:03 -08:00
amirh
5d39f15c69
Smooth Floating Action Button notch (#14851) 2018-02-23 14:58:50 -08:00
David Shuckerow
3ee85e0137
Create and test max and min animations (#14814) 2018-02-22 14:54:27 -08:00
Hans Muller
3ea4d06340
Update TabBar indicator painter when tab controller changes (#14825) 2018-02-22 11:12:39 -08:00
amirh
01b53bd014
Fix overlap check in bottom app bar's custom clipper (#14813) 2018-02-22 09:20:37 -08:00
xster
1bdbfe7b52
Fix SliverPadding dropping the chain on scrollOffsetCorrection propagation (#14789)
* Fix SliverPadding dropping the chain on scrollOffsetCorrection propagation

* review doc
2018-02-21 14:51:14 -08:00
xster
62addedc11
Fix focus switching when changing tabs in CupertinoTabScaffold (#14431)
* Fix focus switching when changing tabs in CupertinoTabScaffold

* review

* Test focuses are saved within tabs

* review
2018-02-21 12:51:19 -08:00
Victor Choueiri
586d7c2f20 Fix broken link to AnimatedListState documentation (#14786) 2018-02-21 11:31:43 -08:00
amirh
7996d7fb82
Initial implementation of BottomAppBar (#14713)
* add a FAB NotchMaker to ScaffoldGeometry

* add a notchMaker to FloatingActionButton

* Initial implementation of BottomAppBar

Mainly includes the notch making logic.
Not yet tested as currently there is no way to make the FAB and the BAB
overlap, once #14368 to lands we could add unit tests to the
BottomAppBar as well.

* use a closeable for clearing the FAB notchmaker
2018-02-21 10:20:58 -08:00
Hans Muller
24efb55b03
Generalized TabBar selected tab indicator (#14741) 2018-02-21 09:13:45 -08:00
Mikkel Nygaard Ravn
54bf773d37
Fix dartdoc typo (#14772) 2018-02-19 20:35:53 +01:00
Alexandre Ardhuin
297fd9431f
fix potential call on null (#14731)
* fix potential call on null

* review
2018-02-16 22:37:07 +01:00
Matt Sullivan
2a6ed0a869
Added sample code to AnimatedOpacity API docs (#14730)
* Added sample code to AnimatedOpacity docs
2018-02-16 08:56:44 -08:00
Alexandre Ardhuin
bd1921ec84
unnecessary parenthesis (#14533) 2018-02-16 07:43:19 +01:00
Ian Hickson
10393a12fa
Add some more documentation. (#14717) 2018-02-15 14:06:25 -08:00
xster
f6fe41f10b
Small glow overscroll dartdoc addition (#14579)
* Small glow overscroll dartdoc addition

* Directly specify [MaterialApp]

* review
2018-02-15 14:00:32 -08:00
asiva
615f411da7 - Roll engine to version 0f3a8cef60bfe20afeaebe2945087cec90c65369 to pick
up the latest Dart roll

- Resubmit https://github.com/flutter/flutter/pull/14392 to fix
compilation errors
2018-02-15 08:15:02 -08:00
najeira
576191792a Add explanation about Navigator to showDialog doc (#14666)
* add explanation about navigator to showDialog doc

* update doc by review
2018-02-14 17:16:34 -08:00
Ian Hickson
b2af326046
Fix boundaries in applyClampedDragUpdate (#14444) 2018-02-14 17:05:24 -08:00
Michael Goderbauer
e9163a1afe
Wire up didGainA11yFocus, didLoseA11yFocus for CustomPainter (#14711) 2018-02-14 15:18:59 -08:00
David Shuckerow
83b4281649
Add a toString for CurveTween (#14679) 2018-02-14 14:33:42 -08:00
amirh
9bc3bc9822
expose scaled fab area in ScaffoldGeometry (#14683) 2018-02-14 14:08:13 -08:00
Todd Volkert
8a65872ef9
Re-apply "Send nextId in addition to previousId for traversal order" (#14694)
Re-apply "Send nextId in addition to previousId for traversal order (#14676)"
2018-02-13 23:32:28 -08:00
Todd Volkert
e9d7bf8ce1
Revert "Send nextId in addition to previousId for traversal order" (#14691) 2018-02-13 21:50:44 -08:00
Michael Goderbauer
58689c796c
Send nextId in addition to previousId for traversal order (#14676) 2018-02-13 17:14:04 -08:00
amirh
f802cf6d16
ScaffoldGeometry plumbing. (#14580)
Adds a ScaffoldGeometry class and ValueNotifier for it.
A scaffold's ScaffoldGeometry notifier is held in the _ScaffoldState, and is passed to _ScaffoldScope.
New ScaffoldGemometry objects are built and published to the notifier.
2018-02-13 14:40:03 -08:00
Hans Muller
2aa9bb2be7
Tri-state Checkbox (#14611) 2018-02-13 14:16:31 -08:00
Greg Spencer
7be0bd1ce9
Move geometric sort for semantics to the framework side. (#14539)
This adds geometric sort ordering back in for semantics nodes that don't have a sort order defined.

With this change, widgets that either have no sort order, or have an equivalent sort order, will be compared geometrically. The comparison is between the two starting corners, so it is TextDirection-aware: parent nodes that are set to have LTR text will compare upper left corners of their children, and upper right when set to RTL.

Also fixed a bug in the Transform widget that didn't mark modified nodes as needing a semantics update.
2018-02-12 20:53:32 -08:00
Greg Spencer
bfc6833459
Swap nextNodeId for previousNodeId, since setTraversalBefore is broken. (#14607)
It seems that setTraversalBefore doesn't work as well as setTraversalAfter for some reason, although I'm using them the same way. Some apps would lock up TalkBack when traversing if setTraversalBefore was set, but not with the equivalent setTraversalAfter.

It's not entirely clear why this is, but I'm going with this to at least get it fixed for apps we know about.

Fixes #14600
2018-02-12 14:10:39 -08:00
Michael Goderbauer
04d3ecb87e
Add accessibilityFocus and loseAccessibilityFocus as a11y actions (#14603) 2018-02-09 19:57:02 -08:00
Michael Goderbauer
72517f0a0a
Encode scrolling status into tree (#14536) 2018-02-09 18:33:50 -08:00
Alexander Aprelev
0f3aa50071
Roll engine with rolled dart (#14538)
* Roll engine to pre-dart roll

* Roll engine to pick up updated dart

* Apply Map changes

* Move to dev.22

* Fix some analysis issues

* Silent analyzer

* More consts

* More const massaging

* Yet more const massaging

* Yet more const massaging

* Use nonconst()
2018-02-09 10:33:24 -08:00
Vyacheslav Egorov
d20125c3da
Change GlobalObjectKey.toString to strip away State<StatefulWidget>. (#14558)
This allows const GlobalObjectKey(0) to be concisely formatted as
[GlobalObjectKey int#0000] in both Dart 2 and Dart 1 modes.

Without this change it would be formatted as
[GlobalObjectKey<State<StatefulWidget>> int#0000] because in Dart 2
types are instantiated to bounds.

In addition to retaining general readability this also fixes few
tests that rely on this short string representation (see
test/widgets/global_keys_duplicated_test.dart).
2018-02-09 09:51:58 +01:00
asiva
8acb68888c Fix typo. 2018-02-07 21:28:18 -08:00
asiva
bdc6f10293 Fix issues. 2018-02-07 21:28:18 -08:00
asiva
e122d5d1d5 Revert "Fixes in flutter framework code to address the mixin issue raised"
This reverts commit 1c236d52454fd6c72c9b49b7b06f08c5ba36ec66.
2018-02-07 21:28:18 -08:00
amirh
4ae1b5f415
Paint the shape border in the Material widget (#14383) 2018-02-07 15:18:04 -08:00
Jason Simmons
3e1ef19fcb
Fix a type error in Scrollable.ensureVisible (#14525)
Fixes https://github.com/flutter/flutter/issues/14492
2018-02-07 14:17:08 -08:00
Hans Muller
788f01f90d
Revert kRadialReactionRadius was 20 is now 24 again (#14522) 2018-02-07 10:26:55 -08:00
Chris Bracken
66ecfb02c2
Apply media padding to persistent footer buttons (#14512)
Applies left, right, and bottom media padding (e.g. iOS safe area
insets) around ButtonBar in the material scaffold
persistentFooterButtons.
2018-02-07 09:34:46 -08:00
Amir Hardon
cc060ff2f2 Use PhysicalModel for the default canvas Material.
This is done to keep in place the workaround we have for rectangular material
where PhysicalModel skips the saveLayer call.
2018-02-06 18:44:42 -08:00