Hans Muller
606f56221b
Eliminated DrawerItem, use ListTile instead ( #8992 )
2017-03-24 15:34:43 -07:00
Hans Muller
49f5fbb809
Tweaked the appaearance of the cards demo ( #8964 )
2017-03-24 10:21:59 -07:00
Alexandre Ardhuin
578ca0a295
use color.shadeXxx instead of color[Xxx] ( #8932 )
...
* use color.shadeXxx instead of color[Xxx]
* remove calls to .shade500 on MaterialColor
* remove calls to .shade200 on MaterialAccentColor
* fix test
2017-03-21 23:14:55 +01: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
97816e1571
Rename Dismissable to Dismissible ( #8919 )
...
The latter is the proper spelling.
Fixes #8883
2017-03-20 16:17:08 -07:00
Hans Muller
031e042eee
Now each Colors.foo constant is-a Color and a color swatch ( #8833 )
2017-03-17 15:24:54 -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
a0769f2488
apply the upcoming rule unnecessary_this ( #8838 )
2017-03-17 08:05:42 +01:00
Alexandre Ardhuin
2166ea5b7f
apply partially the upcoming unnecessary_lambdas ( #8810 )
2017-03-15 23:09:58 +01:00
Alexandre Ardhuin
a9ba0e2f88
prefer_initializing_formals ( #8797 )
2017-03-15 18:30:55 +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
Adam Barth
6b75ac3fde
Rename dependenciesChanged to didChangeDependencies ( #8767 )
...
The new name matches the style guide. (The old name was just old and predated
the style guide.)
Fixes #8000
2017-03-14 11:21:53 -07:00
Alexandre Ardhuin
16d800b204
normalize setter format ( #8708 )
2017-03-10 21:52:30 +01:00
Alexandre Ardhuin
6a2148dde9
prefer const constructors ( #8594 )
...
* prefer const constructors
* fix double throw
2017-03-08 14:58:14 -08:00
Alexandre Ardhuin
ce734e8f24
apply the upcoming rule : directives_ordering ( #8582 )
2017-03-08 14:58:09 -08:00
Alexandre Ardhuin
329e52c02c
apply upcoming rule use_collection_literals_when_possible ( #8649 )
2017-03-08 14:57:31 -08:00
Hans Muller
44dbecc6be
Animation Demo performance tweaks ( #8586 )
2017-03-06 11:06:05 -08:00
Chris Bracken
96eea437b2
Declare locals final where not reassigned (gallery) ( #8571 )
2017-03-03 17:51:21 -08:00
Hans Muller
54d9541638
Added a gallery animation demo ( #8547 )
2017-03-03 11:38:19 -08:00
Chris Bracken
c54cc96905
Default contacts demo to pinned AppBar ( #8445 )
2017-03-02 14:40:13 -08:00
xster
e55c7239ec
Fix test ( #8536 )
2017-03-02 12:46:43 -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
xster
a76c352d57
Add Cupertino to gallery and add CupertinoButton and many yak friends ( #8411 )
...
* Add cupertino to gallery and add CupertinoButto
* Use single quotes
* Add disabled state
* Some review notes
* Make button animation more responsive and tweak timing
* Renamed things Cupertino
* Button with background, move cupertino demos, move material demos
* Move 2 level list too
* Refactor various demo route names
* Some review notes
* More reviews and add test
* Linter as
* Move private constant up
2017-03-01 16:06:48 -08:00
Michael Goderbauer
2a9fc2e70e
Remove self-package import ( #8483 )
...
This is apperently breaking some customers.
If this gets submitted, we should investigate why self-package imports
don't work for certain customers.
2017-02-28 19:45:29 -08:00
Michael Goderbauer
65835af4e6
Roll forward #8467 ( #8477 )
...
* Revert "Revert "Simplify path handling logic in dependency checker and devFS (#8414 )" (#8467 )"
This reverts commit 96ba7f76d2
.
* Intentionally use a self-package URI in flutter_gallery
* tests to catch problems with self-package imports
2017-02-28 17:21:17 -08:00
Adam Barth
ecb6efa926
Generalize AnimatedWidget to work with any Listenable ( #8469 )
2017-02-28 16:40:41 -08:00
Adam Barth
f20c3d1032
Add a color
argument to Container
. ( #8396 )
...
It's common to just want a simple colored box. Simple thing should be simple,
so this patch adds a convenience argument to Continer for creating a box
decoration that is just a color.
Fixes #5555
2017-02-24 12:25:48 -08:00
Alexandre Ardhuin
8c043d06de
fix lints for directives_ordering rule ( #8382 )
2017-02-23 13:37:26 -08:00
xster
72fa281f12
Conform appbar buttons to Material ( #8263 )
...
Extend app bar left to edge, right to 4dp
Make leading button square and 56dp
Keep title at 72dp on Android according to Material
Renamed IconButton.size to .iconSize
IconButton minimum size expands to 48dp (#8264 )
IconButton default constraints to 48. Can still stretch to infinity but can't be smaller than 48.
Ink splash for IconButton 40% bigger than the touch target to match Material
Tests
2017-02-22 11:32:22 -08:00
Adam Barth
b6e282779a
Disable menu button when bottom sheet open ( #8319 )
...
Otherwise tapping the menu button causes the bottom sheet to disappear and
reappear.
Fixes #8275
2017-02-21 16:25:28 -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
Ian Hickson
f9c2d7d9aa
Introduce a quick way to test across platforms ( #8262 )
2017-02-17 17:47:49 -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
Ian Hickson
6303a32d63
Pesto crash ( #8238 )
2017-02-16 20:44:33 -08:00
Ian Hickson
1bd7dbc2ec
Rename "Over-scroll" demo to "Pull to refresh" ( #8224 )
...
Fixes https://github.com/flutter/flutter/issues/5935
2017-02-16 17:14:01 -08:00
Ian Hickson
659bc2263d
Port RefreshIndicator to slivers ( #8218 )
...
This does not attempt to correct any logic, only to port it as written.
The API changed a bit to take into account what is newly available and
no longer available in the new world.
2017-02-16 14:54:34 -08:00
Adam Barth
1773e47b03
Remove a number of old scrolling widgets: ( #8212 )
...
- ScrollableList
- ScrollableLazyList
- LazyBlock
- MaterialList
Clients should use ListView instead.
2017-02-15 21:30:51 -08:00
Adam Barth
464a8e7cde
Formally deprecate Block and ScrollableViewport ( #8166 )
...
The replacements are ListView and SingleChildScrollView, respectively.
2017-02-14 21:03:55 -08:00
Adam Barth
14743566ca
Migrate Dropdown to ScrollConfiguration2 ( #8135 )
...
Also use the word "dropdown" consistently over "drop down".
2017-02-14 14:06:59 -08:00
Adam Barth
fd30f63161
Replace Scrollbar with Scrollbar2 ( #8133 )
2017-02-14 08:55:16 -08:00
Adam Barth
9df8b7211b
Deprecate old list-based scrolling widgets ( #8120 )
...
- MaterialList
- ScrollableList
- ScrollableLazyList
- LazyBlock
All of these widgets can be replaced by ListView now.
2017-02-13 17:45:29 -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
1ec625ffad
Remove PageableList ( #7997 )
...
All clients have moved to PageView.
2017-02-08 15:50:30 -08:00
Adam Barth
1a066c8404
Use ListView in text_field_demo.dart ( #7965 )
...
Now that ensureVisible works, we can use ListView instead of Block in
this demo.
2017-02-08 10:33:49 -08:00
Adam Barth
31e2a500f7
Use sliver-based scrolling in more places ( #7892 )
...
This patch uses sliver-based two more gallery demos, the stocks example,
in the date picker, and in markdown.
2017-02-05 21:39:24 -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
652e9c7aa3
Make kPestoRecipes a constant ( #7886 )
...
Someone on stack overflow was mutating the list of recipes and getting
confused about why the UI didn't redraw. Making kPestoRecipes a constant
might help avoid that confusion.
2017-02-04 09:33:56 -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
332a23030b
Rename and refactor ScrollView hierarchy ( #7865 )
...
This prepares us for a CustomScrollView that takes slivers.
2017-02-03 16:05:43 -08:00
Ian Hickson
5928d221d4
ShrinkWrap Viewport ( #7790 )
2017-02-02 14:50:04 -08:00
Ian Hickson
6dcd127188
Delay time dilation so users see the checkbox ( #7803 )
...
Fixes https://github.com/flutter/flutter/issues/5066
2017-02-01 22:48:00 -08:00
Adam Barth
fe01c71cf4
Switch clients to ScrollGrid ( #7752 )
...
The only remaining client of ScrollableGrid (the old version) is Pesto,
which needs AppBar integration.
2017-02-01 11:01:02 -08:00
Adam Barth
695302029f
Revert "Revert "Add SliverGrid and ScrollGrid"" ( #7780 )
2017-02-01 10:18:48 -08:00
Ian Hickson
32784d35f9
Revert "Add SliverGrid and ScrollGrid" ( #7769 )
2017-01-31 17:34:02 -08:00
Adam Barth
9119969ad2
Add SliverGrid and ScrollGrid ( #7745 )
...
This patch adds grid supports to slivers and introduces a ScrollGrid
convenience class for making the common types of scrollable grids.
This patch also deploys ScrollGrid in an example in the Flutter Gallery.
2017-01-30 17:27:51 -08:00
Adam Barth
a0dee550c0
Use ScrollView in more places ( #7746 )
...
Now that ScrollView supports itemExtent, we can use it in a few more places.
2017-01-30 16:45:51 -08:00
Ian Hickson
62c1b0b217
Fix wording of app bar vs toolbar in gallery ( #7720 )
...
Reverts a change from https://github.com/flutter/flutter/pull/3158 .
Fixes https://github.com/flutter/flutter/issues/3161
2017-01-28 14:24:19 -08:00
Ian Hickson
571834ea3c
Indicate required fields in flutter_gallery demo. ( #7717 )
2017-01-28 01:48:18 -08:00
Adam Barth
5ecf8786b4
Add ScrollView.padding ( #7690 )
...
Uses SliverPadding to implementing paddding in ScrollView. Also, deploy
ScrollView in more places now that it implements padding.
Finally, remove loader_app.dart because it is not referenced.
2017-01-26 23:14:37 -08:00
Adam Barth
a4eca31777
Use ScrollView in examples a manual_tests ( #7645 )
...
This patch deploys ScrollView in a number of demos and manual tests.
2017-01-25 21:59:03 -08:00
Adam Barth
559621ca5a
Add SingleChildScrollView ( #7620 )
...
This widget is a replacement for ScrollableViewport that uses the new
Scrollable2 machinery. The widget is not based on Slivers but does use the new
scroll behavior classes.
2017-01-24 15:16:01 -08:00
Adam Barth
bf296f715e
Test DataTable ( #7591 )
...
This patch adds a basic test for the DataTable widget.
2017-01-23 12:40:51 -08:00
Ian Hickson
63aa1397a3
Increase the strictness of our requiring explicit types ( #7585 )
...
...now that we have generic methods, their types need to be specified too.
2017-01-23 01:04:31 -08:00
Ian Hickson
9573bc14e0
Avoid double negatives in text editing APIs ( #7577 )
...
hideText -> obscureText
hideDivider -> !showDivider
2017-01-21 23:34:54 -08:00
Ian Hickson
15a7eb3b6c
Move to real generic method syntax ( #7235 )
2017-01-21 20:58:44 -08:00
Adam Barth
b2a2ee72f9
Migrate from Input to TextField
...
We expect TextField to be used much more often than Input. This patch updates
our old example code to use TextField instead.
See #7031
2017-01-19 14:53:08 -08:00
Adam Barth
930b52a3e5
Rename InputFormField to TextField
...
This patch is the first of a series to rationalize the names of the text-input
related widgets.
See #7031
2017-01-19 14:53:08 -08:00
Michael Goderbauer
8b1121851e
Fix icon color in dark theme of gallery ( #7544 )
...
Previously, the icon in the tooltip demo was black on black background
in the dark theme. Now it is white on black background in the dark theme
and black on white background in the light theme.
fixes #7018
2017-01-19 11:20:55 -08:00
Hans Muller
0ce9917fb2
Support for vetoing an attempt to pop the current route ( #7488 )
2017-01-18 11:04:18 -08:00
Adam Barth
ad27fcd3dc
Add SimpleDialogOption ( #7494 )
...
The demo of the SimpleDialog had some useful code that should really be part of
the framework. This patch extracts it into a SimpleDialogOption widget.
Remove debugCheckHasScaffold because it is unused.
Also, add tests for InkWell, SimpleDialog, and other widgets.
2017-01-13 23:26:05 -08:00
Adam Barth
4955eef8a7
Refactor IconThemeData.fallback ( #7490 )
...
Now IconThemeData.fallback is a factory constructor and IconThemeData.of() does
the work of computing the fallback for its clients.
Also, add tests for ImageIcon and ListItems.
2017-01-13 14:44:47 -08:00
Hans Muller
b23aed7a86
New Tabs API ( #7387 )
2017-01-09 14:55:36 -08:00
Adam Barth
0c6dc598f7
Slider shouldn't be open at min ( #7342 )
...
This patch changes the default appearance of Slider to not have the
thumb be an open circle at its minimum position. The `thumbOpenAtMin`
property can enable drawing an open thumb at the min position, which was
the previous behavior.
Fixes #6941
2017-01-05 11:29:55 -08:00
Hans Muller
d05c7f62f2
UserAccountsDrawerHeader gallery demo, etc ( #7297 )
2016-12-21 06:19:42 -08:00
Luke
1b9939af95
Rename DestinationLabel on BottomNavigationBar ( #7281 )
...
* rename DestinationLabel and labels properties to BottomNavigationBarItem and items
* update/fix comments
* grammatical changes
* add myself to AUTHORS
2016-12-17 18:14:37 -08:00
Matt Perry
6d4191e98c
Forms provide more control over when they validate. ( #7283 )
...
Callers can manually validate by calling validate(), or tell the Form to
validate on every change by setting the `autovalidate` parameter.
Fixes https://github.com/flutter/flutter/issues/7219
2016-12-16 18:14:37 -05:00
Hans Muller
dbf1cfdbf0
Do not pad the Input/InputContainer icon ( #7282 )
2016-12-16 12:10:57 -08:00
Hans Muller
a3183a4a86
BottomNavigationBar accepts widget icons ( #7161 )
2016-12-06 08:14:36 -08:00
Hans Muller
7667a3f8eb
DropdownButton hint ( #7114 )
2016-12-01 07:27:14 -08:00
Adam Barth
f960215167
Remove unneeded analyzer ignores ( #7109 )
...
We don't need these anymore.
2016-11-30 14:54:01 -08:00
Hans Muller
57d5de8459
Fix label text wrapping in expansion panels gallery demo ( #7103 )
2016-11-30 09:52:54 -08:00
Hans Muller
e05dcc9c71
Remove extraneous gallery demo scrollable keys ( #7098 )
2016-11-30 08:47:22 -08:00
Collin Jackson
f0c7f5a942
Support for overriding Gallery feedback menu item behavior ( #7091 )
2016-11-29 17:47:39 -08:00
Hans Muller
ab0fdd7227
removed debugPrintFoo debris ( #7067 )
2016-11-29 09:26:34 -08:00
Hans Muller
1e90810566
Pesto favorite Recipe FAB should respond to taps within the app bar ( #7059 )
2016-11-29 09:02:20 -08:00
Seth Ladd
dba0e3f6ae
a welcome message in gallery ( #7048 )
...
because this is the most full-featured sample we have.
2016-11-28 10:56:44 -08:00
Hans Muller
2398cd9acc
Remove extraneous gallery demo imports ( #7002 )
2016-11-23 11:08:06 -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
Hans Muller
39872e7df1
Combine date and time picker demos ( #6933 )
2016-11-21 11:49:35 -08:00
Ian Hickson
9c1a24fa72
Reexport meta from foundation. ( #6938 )
2016-11-18 21:22:32 -08:00
Hans Muller
f496ad055a
Fix GridTileBar layout ( #6844 )
2016-11-15 12:01:27 -08:00
Hans Muller
f0b8c866db
Fix gallery demo body centering ( #6841 )
2016-11-14 10:21:05 -08:00
Raju Bitter
3f8c37cfab
Fix for issue https://github.com/flutter/flutter/issues/6826 ( #6833 )
...
Exception in Flutter Gallery / Dialogs Demo #6826
2016-11-12 09:20:34 -08:00
Chinmay Garde
1939ba12d2
Wire up checkerboarding of raster cache images in the framework and gallery. ( #6749 )
2016-11-09 11:36:17 -08:00
Jason Simmons
46b60773e8
Update Gallery usage of Scaffold.of ( #6639 )
2016-11-03 17:26:36 -07:00
Ian Hickson
a7debdc72f
Delete fail.dart ( #6699 )
...
I think we must have accidentally checked this in some time.
2016-11-03 14:39:39 -07:00