Alexandre Ardhuin
cc1cf13eec
enable lint unnecessary_const ( #19342 )
2018-07-16 21:43:48 +02:00
Will Larche
326caa5d22
[Gallery] Updated assets and copy ( #18324 )
2018-06-09 00:39:27 -07:00
Alexandre Ardhuin
c02b6a8bcf
some whitespace cleanup ( #14443 )
2018-02-02 23:27:29 +01:00
Alexandre Ardhuin
0fe1e5bf5b
apply upcoming lint prefer_const_literals_to_create_immutables ( #14029 )
2018-01-11 08:38:55 +01:00
Chris Bracken
2c0c9ba9e5
Apply media padding in complex layout benchmark drawer header ( #13610 )
...
By default BoxScrollView (and hence ListView, which is a subclass)
padding is the media padding along its scroll axis in order to avoid
placing list items within areas where user interaction should be
minimised -- e.g. under the status bar, or in and around the iPhone X
notch in landscape mode.
In cases where a list item should occupy the padding area, developers
should set the ListView padding to EdgeInsets.zero so as not to pick up
the default media padding. For widgets inside the drawer that should
avoid safe areas, developers can add a SafeArea widget.
2017-12-15 12:46:35 -08:00
Hans Muller
0e4dda7736
Improved support for saving and restoring the scroll offset, etc V2 ( #10590 )
2017-06-08 17:20:36 -07:00
Chris Bracken
60f5ae8e77
Add const non-null asserts where required ( #9945 )
...
Also includes minor doc fixes.
2017-05-09 21:15:42 -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
Mehmet Fidanboylu
4e7a38b118
Add a tile scrolling test to complex_layout app ( #9537 )
...
* Add a tile scrolling test to complex_layout app
* - Review comments and fix analyzer failures.
* Use ListView.builder pattern.
2017-04-26 14:22:11 -07: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
Adam Barth
0d0861b3ee
The const will continue until morale improves ( #9536 )
2017-04-21 14:59:24 -07:00
Alexandre Ardhuin
9541848272
make @immutable const classes ( #9532 )
...
* make @immutable const
* fix build
2017-04-21 23:09:42 +02:00
Yegor
a5593b1678
fix analyzer warning: use const where possible ( #9320 )
2017-04-10 14:20:47 -07:00
Alexandre Ardhuin
610955f81d
upgrade to linter-0.1.30 ( #9297 )
...
* upgrade to linter-0.1.30
* add prefer_is_empty lint
* add directives_ordering lint
* add no_adjacent_strings_in_list lint
* add no_duplicate_case_values lint
* add prefer_collection_literals lint
* add prefer_const_constructors lint
* add prefer_contains lint
* add prefer_initializing_formals lint
* add unnecessary_null_aware_assignments lint
* add unnecessary_null_in_if_null_operators lint
2017-04-08 08:43:19 +02:00
Ian Hickson
ebe6da5b17
Rename BlockBody to ListBody. ( #9291 )
...
Nobody knew what a Block was.
2017-04-07 17:14:54 -07:00
Ian Hickson
3eb87830e9
Constants! Constants everywhere! ( #9286 )
...
Aggressively apply the const lint.
2017-04-07 12:24:32 -07:00
Hans Muller
606f56221b
Eliminated DrawerItem, use ListTile instead ( #8992 )
2017-03-24 15:34:43 -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
Chris Bracken
6c97dd2c6c
Declare locals as final where not reassigned (dev) ( #8574 )
2017-03-03 18:06:08 -08:00
Alexandre Ardhuin
e9a775bf38
prefer const constructors ( #8316 )
2017-02-21 14:54:29 -08:00
Adam Barth
88a01ac40c
Port complex_layout to Sliver-based scrolling ( #8114 )
2017-02-13 16:30:19 -08:00
Adam Barth
474c2c7df6
Switch complex_layout back to LazyBlock ( #7940 )
...
We need to study these benchmark numbers more carefully. See #7937
2017-02-07 15:21:48 -08:00
Adam Barth
2e9986614d
Use sliver-based scrolling in more places ( #7893 )
...
In particular, we now use ListView in the about dialog.
2017-02-06 16:13:48 -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