1999 Commits

Author SHA1 Message Date
Adam Barth
73bee3ae29 Document progress indicators
Specifically, explain how to create both determinate and indeterminate progress

indicators.



Fixes #3055
2016-04-04 12:32:37 -07:00
Adam Barth
767ce82646 Add support for discrete material sliders
Fixes #1541
2016-04-04 11:14:12 -07:00
Ian Hickson
daa0d2dfb3 Document newton more. 2016-04-03 23:33:34 -07:00
Ian Hickson
7f2efb2cfd Further improve error reporting by wrapping messages. 2016-04-03 12:00:01 -07:00
Ian Hickson
ee703da9de Rationalise all our exception handling.
- Create a FlutterErrorDetails struct-like class that describes an

  exception along with more details that aren't in the exception, like

  where it was caught and what was going on when it was caught.



- Provide a FlutterError static API for handling these objects:



  - FlutterError.onError which is called whenever Flutter catches an

    error.



  - FlutterError.reportError() which handles an error.



  - FlutterError.dumpErrorToConsole() which is the default behavior

    for onError.



- Removes all the existing exception handler callbacks.



- Replaces all the existing places that described exceptions using

  debugPrint with calls to FlutterError.reportError().



- Extend lockState() to also catch exceptions, so that we catch

  exceptions that happen during finalizers.



- Make the test framework catch errors and treat them as failures.



- Provide a mechanism to override this behavior in the test framework.



- Make the tests that used to depend on the exception handler

  callbacks use this new mechanism.



- Make pump() also support the phase argument.



- Improve some tests using these new features.



Fixes #2356, #2988, #2985, #2220.
2016-04-02 10:24:12 -07:00
Ian Hickson
3cd58547cd Clean up and document icon button color logic 2016-04-01 21:23:01 -07:00
Adam Barth
665ac49b57 Add support for backdrop filters
For example, to implement backdrop blur effects.
2016-04-01 21:15:43 -07:00
Ian Hickson
71e689f450 Have a default default text style.
This way, widgets that try to use the DefaultTextStyle don't have to

handle the case where there isn't an explicit default.
2016-04-01 16:10:27 -07:00
Ian Hickson
902391b048 Realign the slow mode banner to not overflow. 2016-04-01 14:54:58 -07:00
Adam Barth
ca4b5cf497 Polish drop-down padding
Previously we weren't padding the top and the bottom of drop-down menus but the

spec says these should have 8.0 pixel of padding, the same as popup menus.



Fixes #2683
2016-04-01 12:58:19 -07:00
Adam Barth
c1440e2261 Merge pull request #3022 from abarth/polish_selection_controls
Polish selection controls
2016-04-01 11:14:04 -07:00
Andrew P. Wilson
f516dbcc2e Leave all entered targets when finishing. 2016-04-01 09:45:28 -07:00
Adam Barth
622bec43be Capture closures around megamorphic dispatches
The performLayout and build callsite are highly megamorphic because they
dispatch into a large number of clients. However, for a given caller, the
callee is always of the same type, which means the megamorphic lookup exactly
factors by the caller. We can speed up the dispatch by capturing a closure at
initialization and then monomorphically dispatching through the closure.
2016-04-01 08:19:37 -07:00
Adam Barth
884ec65c9e Don't delay between dismissing a snack bar and the next snack bar
Previously, the Dismissable widget was animating down to zero width off
screen. Now, we tell it to skip the resize animation.

Fixes #3030
2016-03-31 23:25:03 -07:00
Adam Barth
35d5b73ab5 Add review feedback to dartdocs 2016-03-31 23:06:11 -07:00
Adam Barth
cf80b90507 Merge pull request #3025 from abarth/fix_docs
Fix broken link in the docs
2016-03-31 17:32:42 -07:00
Adam Barth
c0842205ca Merge pull request #3027 from abarth/drop_down
Drop is a separate word than down
2016-03-31 17:28:35 -07:00
krisgiesing
b0e6f14dc0 Merge pull request #3028 from krisgiesing/fix
Fix spinning_mixed widget example, plus minor style fix
2016-03-31 14:54:50 -07:00
Adam Barth
bfc3532525 Improve setState-after-dispose error message
We now explicitly mention the possibility of a memory leak.

Fixes #2978
2016-03-31 14:30:21 -07:00
Kris Giesing
ed03e96b68 Fix spinning_mixed widget example, plus minor style fix 2016-03-31 12:56:14 -07:00
Adam Barth
d99432ca1a Drop is a separate word than down
Therefore, we use _ between them in the file name.
2016-03-31 12:52:09 -07:00
Adam Barth
a71231a554 Fix broken link in the docs 2016-03-31 12:06:39 -07:00
krisgiesing
243960d741 Merge pull request #3010 from krisgiesing/offscreen_layout
Part 2 of independent layout pipelines
2016-03-31 11:11:22 -07:00
Kris Giesing
9dfd5d4021 Part 2 of independent layout pipelines
Adds BuildOwner to manage the dirty list and build processing for
widgets/elements, and adds a widget unit test to make sure separation
is enforced.

Fixes #2723
2016-03-31 11:02:00 -07:00
Adam Barth
2bc08720e4 Document which widgets require a Material ancestor
Also, fill out other documentation for these widgets.

Fixes #967
2016-03-31 07:39:13 -07:00
Adam Barth
dca4e4aaa4 Polish selection controls
The touch ripple now starts at the touch location instead of being
centered on the widget.

Fixes #2652
2016-03-30 23:58:21 -07:00
Adam Barth
db9a92e59f Merge pull request #3011 from abarth/slider_polish
Polish Slider implementation
2016-03-30 18:06:08 -07:00
Adam Barth
c68494eb2a Merge pull request #3015 from abarth/snackbar_fade
Snackbar opacity animation shouldn't trigger on reverse
2016-03-30 17:26:11 -07:00
Adam Barth
d4b0c66bbe Polish Slider implementation
Based on feedback from the material design team.

Fixes #1613
2016-03-30 17:22:29 -07:00
Adam Barth
da987ed217 Snackbar opacity animation shouldn't trigger on reverse
Fixes #617
2016-03-30 17:14:38 -07:00
Hans Muller
3098abf749 Tab updates 2016-03-30 16:50:52 -07:00
Adam Barth
febfdf69f9 Merge pull request #3014 from abarth/update_mojo
Update engine
2016-03-30 16:02:24 -07:00
Adam Barth
d4febd085d Make it possible to dismiss a snackbar manually
Fixes #463
2016-03-30 15:42:51 -07:00
Adam Barth
04adf211d7 Update engine
This patch updates our use of Mozart to the latest version of the protocol.
2016-03-30 15:39:54 -07:00
Hans Muller
e76759953a Merge pull request #3002 from flutter/date_picker
DatePicker et al updates
2016-03-30 12:29:45 -07:00
Adam Barth
4fae8dfb7f Merge pull request #3008 from abarth/rm_text_height
These height values are incorrect
2016-03-30 12:20:50 -07:00
Adam Barth
bf31cf1e10 These height values are incorrect
They're actually leading values rather than line height values, which means
they're operative between paragraphs not within a given paragraph.
2016-03-30 12:08:19 -07:00
Hans Muller
c2366f3318 DatePicker et al updates 2016-03-30 12:04:51 -07:00
Adam Barth
15393b4990 Improve docs for TextStyle#height
Fixes #2918
2016-03-30 10:56:18 -07:00
Adam Barth
89076c95f0 Update engine
Also, pass font information to ui.ParagraphStyle.
2016-03-30 09:41:05 -07:00
Adam Barth
7da44d2d60 Merge pull request #2994 from abarth/faster_checked_mode
The intrinsic size checks were very slow
2016-03-29 19:13:53 -07:00
Adam Barth
9157c16421 The intrinsic size checks were very slow
Now we run them once per render object.

Fixes #2487
2016-03-29 16:35:33 -07:00
Adam Barth
243a49f7d0 Merge pull request #2992 from abarth/reactive_build
Reactivating a StatefulElement should imply a build
2016-03-29 16:12:01 -07:00
Adam Barth
b841e868f1 Reactivating a StatefulElement should imply a build
Fixes #2901
2016-03-29 16:02:10 -07:00
Ian Hickson
663164339d Merge pull request #2984 from Hixie/table
More table fixes
2016-03-29 15:54:57 -07:00
Hans Muller
992fc76e8e Merge pull request #2986 from flutter/gallery
Animate TwoLevelList leading icon color
2016-03-29 14:33:27 -07:00
Andrew Wilson
fad5df4c5e Merge pull request #2948 from apwilson/image
Add keys to ResourceImages.
2016-03-29 14:16:18 -07:00
Hixie
bdfeaaa47a More table fixes 2016-03-29 14:10:17 -07:00
Hans Muller
08edc0a928 Animate TwoLevelList leading icon color 2016-03-29 14:05:35 -07:00
Andrew Wilson
ed00f3ed5c Add keys to ResourceImages. 2016-03-29 14:02:49 -07:00