3811 Commits

Author SHA1 Message Date
Alexandre Ardhuin
cc1cf13eec
enable lint unnecessary_const (#19342) 2018-07-16 21:43:48 +02:00
Matt Sullivan
d10e46ea65
Chevrons in month picker are semi-transparent when the month is scrolled (#19363)
* Chevrons in month picker are semi-transparent when the month is scrolled

* Added type missing annotation
2018-07-16 11:57:25 -07:00
Sigurd Meldgaard
f6b234a0ea
Fix typo (#19402) 2018-07-16 14:23:25 +02:00
Jonah Williams
e4e8ab47a3
increase cache size if image is loaded that is larger than max size (#19352) 2018-07-13 21:51:00 -07:00
Jonah Williams
1b35cc2cc2
Support keyboardAppearance field for iOS (#19244) 2018-07-13 20:41:55 -07:00
xster
e32e44799a
Add HeroController to CupertinoApp (#19326) 2018-07-13 16:46:01 -07:00
Hans Muller
698bda6ada
Correct contentPadding type in InputDecoration.debugFillProperties (#19318) 2018-07-13 10:37:55 -07:00
Alexander Aprelev
b075229d85
Preserve original kernel file for isolate spawn requests. (#18127)
* Preserve original kernel file for isolate spawn requests.

This change gives incremental kernel files ".incremental.dill" extension thereby preserving original kernel file.

Bug: https://github.com/flutter/flutter/issues/16084
Bug: https://github.com/flutter/flutter/issues/17012
Bug: https://github.com/flutter/flutter/issues/17983

* Factor out naming logic into separate function

* Fix string vs uri
2018-07-12 13:41:15 -07:00
xster
2c00e5f218
Add a doc describing where CupertinoSliverRefreshControl should be in a list of slivers (#19282) 2018-07-11 17:05:24 -07:00
Ian Hickson
418b15354d
Update style for CupertinoRefreshControl. (#19025)
All slivers must start with Sliver (or CupertinoSliver).
All widgets must have a key argument.

Also, some minor tweaks here and there to style and docs.
2018-07-11 15:40:19 -07:00
Michael Goderbauer
36e16e7544
Do not assert when semantics are on and app draws on 0x0 surface (#19059)
Instead, if the surface is 0x0 semantics will just generate one root semantics node with size of 0x0. The node will have no children because all children are invisible and (except for the root node with this change) invisible children are dropped.
2018-07-11 09:46:24 -07:00
Ian Hickson
b3a6eda2d1
Remove hacks that make macOs, Linux, and Windows not fail. (#19187)
They should fail, because we don't have real support yet.

Also, make the debug override work in release builds, so that people
on those platforms have a workaround.
2018-07-10 16:33:40 -07:00
liyuqian
160d92e350
Increase image cache to 100MB (#19220)
This should fix #18952 and #813
2018-07-10 15:28:47 -07:00
Natalie Sampsell
236acb5219
Segmented control animation (#18811)
Added animation to segmented control widget.
2018-07-09 18:55:23 -07:00
Jonah Williams
35291ae3b9
Add ignoringFeedbackSemantics to Draggable/LongPressDraggable (#18643) 2018-07-09 17:02:21 -07:00
Hans Muller
8b5cbca765
Rebuilding BottomNavigationBar when items.length changes (#19179) 2018-07-09 16:47:12 -07:00
stuartmorgan
32941a8cc0 Add Windows support to defaultTargetPlatform (#19176)
A significant amonut of code uses defaultTargetPlatform, so it's
currently impossible to run most apps on Windows. This adds a mapping
from Windows as a host to Android as a target, paralleling the
macOS->iOS and Linux->Android mappings.

This allows more use of Windows as a host platform (e.g., for testing,
as in issue #17768).
2018-07-09 14:04:23 -07:00
xster
17123f5312
Refer to Navigator.of(rootNavigator) in Cupertino tab widgets (#19130) 2018-07-09 12:31:43 -07:00
xster
e08177155e
Put the nav bar padding inside the CustomMultiChildLayout for correct centering and allow custom padding (#19129) 2018-07-09 12:27:24 -07:00
xster
5c8d7e3421
Adjust Cupertino controls's APIs to match Material (#19127) 2018-07-09 12:27:06 -07:00
Jonah Williams
77a528c417
Re-land #18369 (#19082) 2018-07-09 12:05:15 -07:00
Sigurd Meldgaard
064e40d803
Fix typo (#19160) 2018-07-09 10:55:18 +02:00
Hans Muller
7ac183794b
Deferred ListView.separator cleanups (#18720) 2018-07-06 15:21:29 -07:00
xster
06f63aaa5a
Create a CupertinoApp (#18469) 2018-07-04 16:55:22 -07:00
Mikkel Nygaard Ravn
5faac99d92
Fix typos (#19073) 2018-07-04 14:03:01 +02:00
Mikkel Nygaard Ravn
84e77ed20a
Fix typos (#19065) 2018-07-04 09:31:05 +02:00
Jonah Williams
cabe09a532
Revert "Add flag to ThemeData to expand tap targets of certain material widgets (#18369)" (#19053)
This reverts commit 989f5741da9e4e8a9ae40d2ec9fbe33f11aba177.
2018-07-03 15:26:35 -07:00
sandrasandeep
581df52a86
Make EditableText cursor configurable (#18888)
* fixed segmented control golden test

* fixed segmented control golden test

* added cursorWidth, cursorRadius

* added default value for cursorWidth based on Apple specs

* test default cursorWidth

* removed cursorHeight stuff

* added functionality to keep cursor from blinking

* cursor width and radius is configurable + tests

* changed goldens repo version in goldens.version

* working version of configurable cursor (erased debugKeepCursorOn)

* minor changes

* docs

* changed textfield test that was failing due to new default cursorwidth

* added default value of cursorwidth in RenderEditable

* only run golden file tests on Mac

* cursor tests

* the tests are actually there now

* weak warning fixed

* switching to Linux

* changed default cursorWidth: 2.0 -> 1.0

* assorted changes, including changing text field test

* re-paint -> re-layout when changing cursorWidth
2018-07-03 14:02:00 -07:00
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
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
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
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
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