Hans Muller
6335872802
Added Scrollbar, removed ScrollbarPainter ( #3203 )
...
* Added Scrollbar, removed ScrollbarPainter
* removed a dead import
* updated per review feedback
* Only call dispatch if the widgets State is still mounted
2016-04-07 16:59:51 -07:00
Viktor Lidholt
b9e121a5fa
New version of Button demo ( #3174 )
2016-04-07 13:08:14 -07:00
Adam Barth
907215df27
Add more dartdoc to material.dart ( #3167 )
...
Also, clean up a few interfaces that looked awkward when writing docs.
2016-04-07 10:03:59 -07:00
Hans Muller
c058cf2e81
Overscroll indicator for MaterialList
...
Overscroll indicator for MaterialList
2016-04-06 16:46:37 -07:00
Ian Hickson
41338c354c
Use Material design rules for capitalisation
...
See https://www.google.com/design/spec/style/writing.html#
2016-04-06 15:59:30 -07:00
Ian Hickson
798dfa2bc9
Fix analyzer warnings
...
Fix some legit uses of GlobalKey to specify the type they want.
Fix some sketchy uses of GlobalKey in tests to fake it with "as
dynamic".
Remove some extraneous imports that made the build red.
2016-04-06 14:14:34 -07:00
Adam Barth
7ab122e557
PopupMenuButton should lazily build menu items
...
Previously, the client of PopupMenuButton needed to build all the menu times
when building the PopupMenuButton. This can get expensive if, for example, each
item in a scrollable list has a popup menu associated with it.
Now the client passes a builder function to the PopupMenuButton that gets
invoked only when its time to show the menu items.
2016-04-06 13:28:09 -07:00
Ian Hickson
d748186c51
Use callbacks for sending messages up the app
...
Using .of() to call mutating setters is not great practice since it ties
parts of the app together in ways that prevent reuse and composition.
Since people are now using the gallery app to copy from, let's use the
better practice of using callbacks.
2016-04-04 15:25:06 -07:00
Hans Muller
08bb332cbb
Merge pull request #3081 from HansMuller/gallery_tweaks
...
Gallery Tweaks
2016-04-04 14:26:23 -07:00
Adam Barth
767ce82646
Add support for discrete material sliders
...
Fixes #1541
2016-04-04 11:14:12 -07:00
Ian Hickson
79cfe1e092
Make a variety of private State members actually private.
2016-04-03 13:08:00 -07:00
Ian Hickson
285c696f14
Column->Block, uppercase BUTTON captions
2016-04-01 21:22:55 -07:00
Ian Hickson
a05909e3a7
Merge pull request #3049 from Hixie/gallery
...
Tweak the typography demo to match the spec more
2016-04-01 14:36:01 -07:00
Viktor Lidholt
4df24abb33
Merge pull request #3016 from vlidholt/linedrawing
...
Initial version of Fancy line drawer demo
2016-03-31 12:05:58 -07:00
Adam Barth
42d87c4191
Rename ToggleControlsDemo to SelectionControlsDemo
...
These are called selection controls in the spec and in the gallery UI.
2016-03-30 23:31:02 -07:00
Viktor Lidholt
a1212dbc54
Initial version of Fancy line drawer demo
2016-03-30 16:56:46 -07:00
Viktor Lidholt
56ccad99a5
Fixes the broken Weather demo
2016-03-30 11:22:43 -07:00
Hans Muller
04e020590d
Use _ScaffoldLayout to position scrollable appbars
2016-03-29 13:27:37 -07:00
Hans Muller
5a49c68893
author again
2016-03-29 08:49:49 -07:00
Adam Barth
1ba539a661
Add constants for FractionalOffsets
...
Adds some names for common FractionalOffset values.
2016-03-28 22:51:06 -07:00
Matt Perry
641604ad94
Merge pull request #2850 from mpcomplete/form
...
Added a Form widget to manage multiple Input widgets.
2016-03-28 13:55:08 -04:00
Adam Barth
7988099162
Fix Travis
...
The collections package changed to add some stricter type annotations.
We now pass those type annoations. I also sent
https://github.com/dart-lang/collection/pull/26 to make the type
annotations match what they were previously.
2016-03-26 00:27:03 -07:00
Matt Perry
a7b28a3ede
Added a Form widget to manage multiple Input widgets.
2016-03-25 17:55:38 -04:00
Viktor Lidholt
d563f50822
First pass at new Flutter gallery front page
2016-03-25 14:11:01 -07:00
Adam Barth
3c6d4f660e
Add a default MediaQuery value
...
Now MediaQuery.of always returns a non-null value. By default, you get the
values associated with the current ui.Window.
Fixes #2894
2016-03-25 13:07:42 -07:00
Ian Hickson
47e882a5a2
Merge pull request #2878 from Hixie/border-style-none
...
Support hairline borders
2016-03-25 09:29:57 -07:00
Adam Barth
1e25792590
Merge pull request #2881 from abarth/from_ltrb
...
Replace EdgeInsets.TRBL with EdgeInsets.fromLTRB
2016-03-24 15:56:44 -07:00
Hans Muller
d89ccc4aad
Scrollbar thumb color, etc
2016-03-24 15:36:17 -07:00
Adam Barth
c8c325d095
Replace EdgeInsets.TRBL with EdgeInsets.fromLTRB
...
This matches the pattern from Rect. I've left EdgeInsets.TRBL marked as
deprecated to give clients a chance to update.
Fixes #2860
2016-03-24 15:19:40 -07:00
Hixie
9fc29dbbb8
Support hairline borders
...
Previously, border with '0' was ambiguous. Sometimes we treated it as
hairline borders, sometimes as "don't show the border", though even in
the latter case we did some graphics work sometimes. Now we have an
explicit BorderStyle.none flag to not draw the border efficiently.
2016-03-24 14:05:38 -07:00
Hans Muller
70550a7a9a
Fix _LazyWidgetProvider indexing, move Ali Connors
2016-03-21 12:20:09 -07:00
Hans Muller
070fdf7754
Flexible AppBar with a TabBar
2016-03-21 10:42:52 -07:00
Adam Barth
502a4ae078
Use FractionalOffset for gradients
...
These were using Offsets, but they're really FractionalOffsets.
Fixes #2318
2016-03-15 19:30:41 -07:00
Hixie
797e27edd3
Add @override annotations to flutter framework
2016-03-14 14:02:26 -07:00
Adam Barth
89987fc040
[rename fixit] TwoLevelSublist left->leading, center->title
2016-03-14 12:24:58 -07:00
Hans Muller
23d7a23e48
Added AppBarBehavior.under, etc
2016-03-14 10:56:59 -07:00
Adam Barth
d5b2e2a01c
[rename fixit] Flex alignments
...
* justifyContent -> mainAxisAlignment
* alignItems -> crossAxisAlignment
* FlexJustifyContent -> MainAxisAlignment
* FlexAlignItems -> CrossAxisAlignment
Fixes #231
2016-03-12 18:33:47 -08:00
Adam Barth
5e1af2f37e
[rename fixit] DismissDirection left -> endToStart, right -> startToEnd
...
Removes an LTR bias in DismissDirection.
Fixes #2562
2016-03-12 18:33:47 -08:00
Adam Barth
ede5dfce30
[rename fixit] ToolBar -> AppBar
...
* left -> leading (Removes an LTR bias)
* center -> title (Widget was actually centered)
* right -> actions (Removes an LTR bias, asymmetric with leading)
Fixes #2348
2016-03-12 18:33:47 -08:00
Adam Barth
e48c822ce3
[rename fixit] left -> leading, right -> trailing
...
The terms "left" and "right" have an LTR bias. Instead, we now use
"leading" and "trailing", for these list and grid decorations so that
we can later rearrange them to match the reading order.
Fixes #2540
Fixes #2548
2016-03-12 17:31:01 -08:00
Adam Barth
9b9ad3db17
[rename fixit] RouteBuilder -> BuildContext
...
Fixes #2353
2016-03-12 17:18:31 -08:00
Adam Barth
95fc5ae070
[rename fixit] *Component* -> *Widget*
...
This patch renames StatelessComponent to StatelessWidget and
StatefulComponent to StatefulWidget.
Fixes #2308
2016-03-12 12:34:05 -08:00
Adam Barth
e71bd77e4f
[rename fixit] EdgeDims -> EdgeInsets
...
Fixes #1382
2016-03-12 12:33:38 -08:00
Adam Barth
7ba1960518
[rename fixit] ThemeData#text -> textTheme
...
Fixes #1278
2016-03-12 12:32:37 -08:00
Hixie
6795efacab
Enable always_specify_types lint
...
And fix the zillion issues that uncovered.
2016-03-12 00:37:31 -08:00
Ian Hickson
43b0104114
Revert "Merge pull request #2639 from Hixie/always_specify_types"
...
This reverts commit f41b3411da , reversing
changes made to e33d8d9621 .
This was a bad check-in due to my mangling uploading a new version of the branch from a different machine.
This reverts https://github.com/flutter/flutter/pull/2639 and will be replaced by https://github.com/flutter/flutter/pull/2640
2016-03-12 00:34:37 -08:00
Hixie
d162d98c79
Enable always_specify_types lint
...
And fix the zillion issues that uncovered.
2016-03-11 18:27:32 -08:00
Matt Perry
0da63e4c2b
Add a basic Text Fields demo to Material Gallery app.
...
BUG=https://github.com/flutter/flutter/issues/1547
2016-03-10 13:56:43 -05:00
Hans Muller
9536c418fc
Scaffold saves and restores scrollable state, etc
2016-03-10 09:19:04 -08:00
Hans Muller
73d7378cee
Support undo in the leave-behind demo
2016-03-08 15:31:29 -08:00