4952 Commits

Author SHA1 Message Date
Jonah Williams
989f5741da
Add flag to ThemeData to expand tap targets of certain material widgets (#18369) 2018-07-03 10:55:43 -07:00
Greg Price
84f5b1cb09 Round properly to nearest page in TabBarView. (#16868)
This logic is described in the test as looking for a scroll ending
very close to a new page, but in fact its behavior is more like
"very close to a page to the right": if we're not very, very close
to any page, it will pick the page to the left, not an old page.

There's no reason this should be left-right asymmetrical.
Instead, pick the nearest page.

In practice, the case where this makes a difference never arises when
the scroll runs undisturbed to completion; but when the user taps on
the page to hold or drag, the scroll will be interrupted before it
gets within tolerance of a particular page, and this case does arise.

This fixes a glitch that is hard to trigger without time dilation,
but is quite conspicuous with it:

 * Open a tab view with at least 4 tabs, e.g. the Buttons screen
   of the gallery (with "Animate Slowly" on.)
 * Starting at tab 0, tap tab 2.
 * When the animation is nearly complete, tap the page a couple
   of times, as if to drag it around to scroll.  Then let the
   page view settle ballistically toward page 2.
 * Before it finishes, tap tab 3.
 * Suddenly page 1 fills the view, replacing page 2, before we
   scroll from there to page 3.

With this fix, the animation in the last step moves smoothly from
where we are when it starts onward to page 3.
2018-07-02 17:20:26 -07:00
Michael Goderbauer
6636da40f9
Show Search Button on keyboard for search widget (#19011)
Also:
 * Export TextInputAction from `text_field.dart` to parallel `TextInputType`.
2018-07-03 00:38:16 +02:00
matthew-carroll
2a65505e8a
Support all keyboard actions. (#11344) (#18855)
* Support all keyboard actions. (#11344)
2018-07-02 06:58:35 +00:00
Ian Hickson
7f7ea2d500
Fix intrinsics for ConstrainedBox (#18935) 2018-06-29 14:42:36 -07:00
Mikkel Nygaard Ravn
ebd11970e2
Fix typo (#18941) 2018-06-29 10:01:52 +02:00
liyuqian
7678c2a5d4
Add golden test for text shade overflow (#18816)
Goldens for flutter/flutter#18729
2018-06-28 13:50:49 -07:00
Jonah Williams
aa088501a5
Return null from Layer.find when transform layer has a non-invertable transform (#18848) 2018-06-26 18:59:32 -07:00
Ian Hickson
3ecd4301bf
Test performance of "flutter test" (#18810) 2018-06-26 17:34:25 -07:00
Jonah Williams
472bbccf75
Fix both platform system chrome definitions (#18808) 2018-06-26 17:01:46 -07:00
Ian Hickson
b44784b429
Clear the keyboard state in the test framework when keyboard is closed. (#18615) 2018-06-26 15:11:37 -07:00
liyuqian
e4f08d55c2
Add saveLayer back if there's an overflowShader (#18739)
This should fix https://github.com/flutter/flutter/issues/18729

I'll add a gold test, and try to figure out how to remove the saveLayer without affecting the correctness later.
2018-06-25 11:07:48 -07:00
liyuqian
e62626fd56
Fix sliver offset calculation again (#18738)
This should fix https://github.com/flutter/flutter/issues/18731 and I've added a unit test for it.
2018-06-25 11:07:10 -07:00
sandrasandeep
5fbec7b812 Fix segmented control golden tests (#18695) 2018-06-25 14:06:41 +02:00
Mikkel Nygaard Ravn
87a067704a
Fix typos (#18789) 2018-06-25 11:46:25 +02:00
Mikkel Nygaard Ravn
095f48d051
Fix typo (#18785) 2018-06-25 10:11:24 +02:00
liyuqian
7fdb404a13
Add the missing canvas.save and canvas.restore (#18722)
This fixes https://github.com/flutter/flutter/issues/18708
2018-06-22 13:58:46 -07:00
Jonah Williams
d6465c477a
Fix system chrome colors on gallery and definition in iOS (#18735) 2018-06-22 13:51:08 -07:00
Jonah Williams
daa1619905
Fix input decoration height and margin calculation. (#18696) 2018-06-22 12:28:15 -07:00
Jonah Williams
f5f055113a
Initial implementation of AnnotatedRegion for system chrome (#17672) 2018-06-21 22:22:59 -07:00
Adam Barth
b327ac3445
Fix typo in Text docs (#18635) 2018-06-21 19:29:30 -07:00
liyuqian
e581435d28
Reland: Skip painting hidden children of a sliver list (#18539)
* Revert "manual rollback of of 18530 (#18531)"

This reverts commit 3f79f8cba5425e964f05fc79331dc5ff4b82c22f.

* Fix the offset calculation

* Add a unit test
2018-06-21 16:46:08 -07:00
Sam Rawlins
9f8a70be4c Bump mockito to 3.0.0-beta (#18462)
* Bump mockito to 3.0.0-beta

* Few fixes

* fix test

* Bump image

* Fix

* New packages update

* With matcher pinned

* No more typed
2018-06-21 16:23:47 -07:00
Hans Muller
bec912165a
Added ListView.separated() constructor (#18619) 2018-06-21 16:04:16 -07:00
Yegor
a57aff053e
fix build scope messages and docs (#18637) 2018-06-21 16:00:49 -07:00
amirh
c39f2f26f7
Move the notch computation from the FAB to the BAB. (#18372)
Move the notch computation from the FAB to the BAB.

The notch in the BAB (bottom action bar) for the FAB (floating action button) was previously kept as part of the FAB's implementation. This was done to keep the shape of the FAB and the shape of the notch coupled.
That approach resulted in a somewhat complex and 'non Fluttery' mechanism for propagating the notch computation from the FAB to the BAB.

This CL uncouples the FAB and the notch computation.
With the new API the BAB computes its overall shape including the notch using a NotchedShape delegate.

This includes multiple breaking changes:
  * Scaffold.setFloatingActionButtonNotchFor is deleted.
  * The ComputeNotch type is deleted.
  * The hasNotch property of BottomAppBar is deleted.
  * The notchMargin property of FloatingActionButton is deleted.

Quick migration guide from the previous API:

| Previous API | New API |
| ------------------|-------------|
| BottomAppBar(hasNotch: false) | BottomAppBar() |
| Using a FloatingActionButton with: BottomAppBar() / BottomAppBar(hasNotch: true) | BottomAppBar(shape: CircularNotchedRectangle()) |
| Scaffold.setFloatingActionButtonNotchFor(..) | No longer supported |
2018-06-21 15:51:21 -07:00
liyuqian
65069ed4de
Remove saveLayer after clip from dart (#18616)
This is a follow up on https://github.com/flutter/engine/pull/5420
and https://github.com/flutter/flutter/issues/18057

As you can see from the diff, we also mistakenly saveLayer before
the clip at some places previously.
2018-06-21 13:01:55 -07:00
matthew-carroll
d916806aee
Use RenderAnimatedOpacity within AnimatedOpacity widget (#15466) (#18121)
* Use RenderAnimatedOpacity within AnimatedOpacity widget (#15466)

* Fixed minor bug in RenderAnimatedOpacity

* Updated protected API for ImplicitlyAnimatedWidget
2018-06-21 19:36:14 +00:00
Dan Field
a18f5e84a1
Expose Text foreground from engine (#18347)
* update tests for TextStyle changes in engine

* roll engine, support Foreground on TextStyle

* roll to TextStyle.foreground

* add tests, update docs, fixes from tests

* add golden tests

* stroke + gradient

* update goldens hash

* Use centered widget

* fix typo

* Disable golden tests until Linux generated files are available

* update goldens
2018-06-20 20:23:51 -04:00
Natalie Sampsell
c35e484c95
Adding segmented control (#18373) 2018-06-20 15:44:03 -07:00
Jonah Williams
97e58ecb2c
Make expansion panel have a minHeight instead (#18623) 2018-06-20 15:15:03 -07:00
Jonah Williams
328e9f62f6
Increase text handle size to 48 by 48 (#18486) 2018-06-20 09:53:18 -07:00
Devon Carew
9a9e6cffab
revert some type args added in https://github.com/flutter/flutter/pull/18575 (#18621) 2018-06-20 07:13:16 -07:00
matthew-carroll
a4599b02e3
Add doc example to addLocalHistoryEntry in LocalHistoryRoute (#9392) (#18124)
* Add doc example to addLocalHistoryEntry in LocalHistoryRoute (#9392)
2018-06-20 00:58:40 +00:00
Ian Hickson
6599271bf5
Revert matcher package (#18614)
The new matcher package deprecates isInstanceOf which seems eggregious.
2018-06-19 17:22:56 -07:00
Greg Spencer
08d1ec36de Roll engine to 0c119932c0d6cb30dafd75ec717d1eda76fd7651 (#18575) 2018-06-19 09:58:20 +02:00
matthew-carroll
9e7e6e7c9b
Add docs to Opacity recommending AnimatedOpacity for opacity animatio… (#18092)
* Add docs to Opacity recommending AnimatedOpacity for opacity animations (#15464)
2018-06-19 00:58:03 +00:00
Greg Spencer
efa2a474ea
Adding HSLColor and color 'within' matchers for HSVColor and HSLColor (#18294)
This adds an HSLColor class which uses a perceptual color space based upon human perception of colored light (as opposed to HSV, which is based on pigment colors).

You can see the difference in the color spaces here: https://en.wikipedia.org/wiki/HSL_and_HSV

I also added a "within" matcher for both HSLColor and HSVColor that will check if the (floating point) color components are within a certain error.

And tests.
2018-06-18 17:11:42 -07:00
Florian Loitsch
bd4cf62821
Roll sync async engine (#18454)
* Roll the engine.

This engine includes a VM that defaults to sync-async.

flutter/engine@c8eeee4 Roll the Dart VM.
2018-06-18 15:17:02 +02:00
Jonah Williams
3f79f8cba5
manual rollback of of 18530 (#18531) 2018-06-16 12:54:02 -07:00
Jonah Williams
278c69c4d3
Add semantics label property to Text widget (#18518) 2018-06-15 20:13:15 -07:00
Jonah Williams
24a1f57065
Add minimum height and width box constraints to input decoration icons (#18480) 2018-06-15 18:29:45 -07:00
liyuqian
38065376fc
Skip painting hidden children of a sliver list (#18465)
We have many hidden children because of iOS accessibility (see also #18410).

For example, in the tile screen of complex_layout app, there could be up to 20 children being painted without this PR. With this PR, only 12 get painted.

This should improve the performance of FL-53 by 40%.
2018-06-15 13:57:24 -07:00
Hans Muller
ac0aaf777f
Fixed some typos (#18516) 2018-06-15 13:03:49 -07:00
Jonah Williams
29e0e8b22f
update Tristate checkbox semantics to consider indeterminate as "unchecked" (#18297) 2018-06-15 12:53:45 -07:00
Jonah Williams
a6cdc2b732
mention Text.rich on RichText (#18434) 2018-06-15 11:27:06 -07:00
Jonah Williams
1793ed79b1
invert children for real (#18489) 2018-06-15 11:22:15 -07:00
Michael Goderbauer
6ab3abfbc3
Fix clipping for SliverLists (#18410) 2018-06-15 10:11:40 -07:00
Michael Goderbauer
409007827b
Keep TextFields visible when keyboard comes up (#18291)
Fixes #10826.

Also in this PR: If you focus a text field, scroll it out of view and then start typing it will scroll back into view.
2018-06-15 10:11:10 -07:00
Mikkel Nygaard Ravn
e713b3349a
Update all packages (#18506) 2018-06-15 17:46:36 +02:00