Chris Bracken
8a77036b35
Center Shrine demo title with centerTitle ( #13586 )
...
Rather than use a Center widget, center the title using AppBar's
centerTitle property. This ensures the title is horizontally centred
with respect to the screen rather than centred in the space between the
leading and trailing app bar widgets, which are asymmetrical in Shrine.
2017-12-14 16:53:30 -08:00
Adam Barth
0044ea2dbb
Replace usage of FractionalOffset with Alignment ( #12348 )
...
Alignment will eventually replace FractionalOffset.
2017-10-02 00:06:24 -07:00
Sarah Zakarias
a0e91bf9e8
Update Flutter Gallery to use new asset api for package assets ( #12254 )
2017-09-26 15:21:01 +02:00
Michael Goderbauer
0e1b652d53
Make Demos in flutter_gallery more accessible ( #10832 )
...
Remaining known issues are #10831 and #10830 .
2017-06-20 11:09:57 -07:00
Alexandre Ardhuin
1eaefe1837
more const for immutables ( #10563 )
2017-06-08 22:04:18 +02:00
Alexandre Ardhuin
7d71326363
apply prefer_asserts_in_initializer_list lint ( #10540 )
2017-06-07 21:39:47 +02:00
stevemessick
cc91b159c0
Fix typo ( #10111 )
2017-05-16 10:19:21 -07:00
Jason Simmons
b586a97ad2
Enable physical model shadows (with animation) and change elevation to a double ( #9756 )
...
Fixes https://github.com/flutter/flutter/issues/9342
2017-05-03 12:11:01 -07:00
Ian Hickson
36052e68dd
BoxDecoration API changes: backgroundColor -> color et al ( #9648 )
...
backgroundColor -> color
backgroundImage -> image
BackgroundImage -> DecorationImage
2017-04-27 14:19:01 -07:00
Alexandre Ardhuin
31828609dc
add @required ( #9579 )
2017-04-25 08:59:43 +02:00
Alexandre Ardhuin
83fce211a3
More const immutable classes ( #9544 )
...
* more widget const constructors
* prefer const constructors
* address review comments
2017-04-23 22:37:29 +02:00
Alexandre Ardhuin
9541848272
make @immutable const classes ( #9532 )
...
* make @immutable const
* fix build
2017-04-21 23:09:42 +02:00
Alexandre Ardhuin
03c54abd5f
make some widgets const ( #9477 )
2017-04-20 08:59:05 +02:00
xster
89a7fdfc56
Rename State.config to widget everywhere ( #9273 )
...
Rename State.config to State.widget
Rename State.didUpdateConfig to State.didUpdateWidget
Renamed all State subclasses' local variables named config to something else
2017-04-10 18:32:24 -07:00
Ian Hickson
3eb87830e9
Constants! Constants everywhere! ( #9286 )
...
Aggressively apply the const lint.
2017-04-07 12:24:32 -07:00
Alexandre Ardhuin
2de61a0853
add @required when there's an assert not null ( #9124 )
...
* add @required when there's an assert not null
* address review comments
2017-03-31 18:34:13 +02:00
Hans Muller
9192f67252
Shrine gallery demo: support for landscape layout ( #9025 )
2017-03-27 15:07:24 -07:00
Adam Barth
269538df58
Add a constant for padding in a Material ListView ( #8918 )
...
Fixes #8235
2017-03-20 16:18:41 -07:00
Adam Barth
5cf04b6141
Rename ImageFit to BoxFit ( #8871 )
...
This machinery is useful for arbitrary boxes (e.g., with FittedBox).
Fixes #6463
2017-03-17 15:21:55 -07:00
Alexandre Ardhuin
2166ea5b7f
apply partially the upcoming unnecessary_lambdas ( #8810 )
2017-03-15 23:09:58 +01:00
Adam Barth
fd51093146
Rename SliverPadding.child to SliverPadding.sliver ( #8757 )
...
The new name follows the pattern of the name suggesting which layout
protocol the parent expects the child to speak.
Fixes #8664
2017-03-14 14:07:13 -07:00
Hans Muller
859da8d28b
Rename ListItem to ListTile, document ListTile fixed height geometry ( #8769 )
2017-03-14 11:46:30 -07:00
Chris Bracken
96eea437b2
Declare locals final where not reassigned (gallery) ( #8571 )
2017-03-03 17:51:21 -08:00
Alexandre Ardhuin
69b6bb87d1
prefer_is_empty and prefer_is_not_empty ( #8474 )
2017-03-01 22:17:30 -08:00
Ian Hickson
2f002885cc
Allow two shrine order pages to be on the screen at the same time. ( #8507 )
...
This happens when, for instance, you go back then forward quickly.
2017-03-01 22:07:37 -08:00
Alexandre Ardhuin
e9a775bf38
prefer const constructors ( #8316 )
2017-02-21 14:54:29 -08:00
Alexandre Ardhuin
da925c7d71
Replace @checked with covariant ( #8300 )
...
Fixes #7734
2017-02-21 09:30:22 -08:00
Adam Barth
e0b12ca17e
Two becomes one ( #8253 )
...
Rename all the "2" classes related to scrolling to remove the "2". Now that the
old scrolling code is gone, we don't need to use the suffix.
2017-02-17 14:06:15 -08:00
Adam Barth
547f89d0c0
Remove two clients of MaterialList ( #8076 )
...
Clients should use ListView instead.
2017-02-11 23:33:56 -08:00
Ian Hickson
83a4cf269f
Port AppBar to Scrollable2 ( #7996 )
...
Move the back button and drawer opening logic into the app bar.
Move the tap-status-bar-to-scroll-to-top logic to using
ScrollControllers. Provide a PrimaryScrollController and a `primary`
flag on scroll views.
Make it possible to track when a route becomes or stops being poppable.
2017-02-08 18:16:19 -08:00
Adam Barth
0bcecef5de
Convert ShrineHome to use CustomScrollView ( #7887 )
...
This patch converts the Shrine home page to using a sliver-based grid.
This required using a CustomScrollView to mix the block at the top with
the grid below.
2017-02-04 16:43:02 -08:00
Adam Barth
ff14f35d6d
CustomScrollView ( #7881 )
...
Also, use CustomScrollView in Shrine and fix a bug with one-line grids
not painting properly due to their reporiting zero paintExtent.
2017-02-03 22:52:25 -08:00
Ian Hickson
15a7eb3b6c
Move to real generic method syntax ( #7235 )
2017-01-21 20:58:44 -08:00
Hans Muller
e05dcc9c71
Remove extraneous gallery demo scrollable keys ( #7098 )
2016-11-30 08:47:22 -08:00
Adam Barth
8ca4caa440
Rename Flexible to Expanded and improve docs ( #6978 )
...
This patch replaces uses of Flexible with Expanded where we're using
FlexFit.tight. We still need to think of a better name for the
FlexFit.loose variant.
Also, improve the docs for Row, Column, Flex, and RenderFlex to be more
problem-oriented and to give a complete account of the layout algorithn.
Fixes #6960
Fixes #5169
2016-11-21 23:16:43 -08:00
Adam Barth
ffe14b0d27
Navigator.push and Navigator.pushNamed should return Futures ( #6333 )
...
These futures complete when the route is popped off the navigator. This
generalizes and simplifies a mechanism already in place for dialogs and
menus.
Fixes #5283
2016-10-14 16:05:45 -07:00
Dragoș Tiselice
b1a7720315
Fixed capitalization of toolbar. ( #5895 )
...
Fixes #4713 .
2016-09-16 11:05:03 -07:00
Dragoș Tiselice
87fb075fa1
Renamed DropDown to Dropdown. ( #5897 )
...
Fixes #3208 .
2016-09-15 17:38:41 -07:00
Hans Muller
03b117a5e5
Remove the "most valuable keys" Hero feature ( #5500 )
2016-08-19 09:59:39 -07:00
Hans Muller
082730e94b
Tapping status bar scrolls to top on IOS ( #5425 )
2016-08-16 12:30:39 -07:00
Hans Muller
6e62df42b6
Removed unnecessary Shrine hero logic ( #5394 )
...
* Removed unnecessary Shrine hero logic
2016-08-15 14:23:53 -07:00
Matt Perry
82b55c5ce4
Fix gallery clipping issues on ipod touch. ( #5258 )
...
* Shrine tile height now hardcoded to match actual card size.
* Animation demo now scales with screen size.
BUG=https://github.com/flutter/flutter/issues/5002
BUG=https://github.com/flutter/flutter/issues/5003
2016-08-08 11:52:35 -04:00
Hans Muller
4a8dbb0e13
Add a repaint boundary to the cards on the shrine order page ( #5251 )
2016-08-05 10:02:53 -07:00
Dragoș Tiselice
f3444fcf28
Added BorderRadius. ( #5072 )
...
* Added custom radii to RRect.
This is the first commit towads an implementation of
MergeableMaterial. It adds custom radii to RRect.
* Renamed RRect constructors and added BorderRadius.
BorderRadius is a class similar to EdgeInsets that lets you define
all rounded corners of a rounded rectangle easily.
2016-07-29 16:17:57 -07:00
Adam Barth
c674b4a803
Rename Image.fromNetwork and Image.fromAssetBundle ( #5149 )
...
These now have sorter names to make the callers less verbose.
2016-07-29 13:28:08 -07:00
Adam Barth
534097ffb6
Use named Image constructors ( #5129 )
...
Some folks didn't realize these existed and asked us to add them. By
using them in examples, hopefully folks will discover them more easily.
2016-07-29 08:27:28 -07:00
Adam Barth
39e759212f
Improve compositing strategy for Shrine ( #5014 )
...
This patch includes a number of improvements:
* Material page routes now put a repaint boundary inside their transition so
they don't repaint during the transition.
* Heroes that are on a quest now get a repaint boundary so we repaint them
individually.
* I've hoisted the transparent material for the product items up in the widget
tree, which doesn't affect performance but makes the ink splashes reach the
edge of the product cards.
* I've changed the repaint rainbow visualization to make it easier to see
what's going on.
2016-07-22 14:09:48 -07:00
Hans Muller
445f250c91
Gallery UI tweaks ( #4861 )
2016-07-11 07:26:36 -07:00
Hans Muller
77cd8ee40e
Reproduce the Shrine home page portrait grid layout ( #4779 )
2016-06-28 11:05:18 -07:00
Hans Muller
bb2e7b5250
Add AppBar iconTheme parameter ( #4693 )
2016-06-22 15:19:31 -07:00