798 Commits

Author SHA1 Message Date
Adam Barth
03d1980733 Change Flexible's default FlexFit (#7404)
Change `Flexible`'s default `FlexFit`

Previously, `Flexible` defaulted to `FlexFit.tight`, which forced the child to
expand to fill the available space. Now, `Flexible` defaults to
`FlexFit.loose`, which does not force the child to expand to fill the available
space.

If you want the child to expand to fill the available space, consider using
`Expanded` instead.

Fixes #5169
2017-01-10 13:12:04 -08:00
Adam Barth
684259794b Add CupertinoAlertDialog (#7395)
Fixes #7375
2017-01-09 21:35:43 -08:00
Matt Perry
12d5b26c3a Add an onChanged callback to InputFormField. (#7398)
Fixes https://github.com/flutter/flutter/issues/7210
2017-01-09 15:43:16 -08:00
Hans Muller
b23aed7a86 New Tabs API (#7387) 2017-01-09 14:55:36 -08:00
Seth Ladd
86ad51f1ec Doc that SizedBox.expand can be used by Scaffold.body (#7141)
Closes https://github.com/flutter/flutter/issues/6907
2017-01-05 15:18:40 -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
Adam Barth
1146587cc7 Improve Scaffold.of docs (#7339)
The docs now include all the information contained in the exception.

Fixes #6994
2017-01-04 16:30:37 -08:00
Adam Barth
86e5fce61a Tooltip update can cause assert (#7338)
We were trying to update the tooltip overlay entry, but that cannot work
because the overlay entry might have already built. Instead, we keep the
old value.

Fixes #7151
2017-01-04 16:08:29 -08:00
Adam Barth
3176921d16 Add CupertinoSlider (#7336)
This widget matches the style of the iOS slider widget. We don't yet
have the proper visual design for the disabled state.
2017-01-04 16:08:19 -08:00
Adam Barth
732a83d408 Add CupertinoSwitch (#7326)
This patch contains a first draft of an iOS-style switch. We'll likely need to
tweak the constants upon closer study, but the basics are here.
2017-01-03 22:11:35 -08:00
lequem
500981fe0f make dialog background color configurable (#7320) (#7323) 2017-01-03 15:02:06 -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
Hans Muller
0d746ff155 AppBar Menu and action button center alignment (#7280) 2016-12-16 12:11:20 -08:00
Hans Muller
dbf1cfdbf0 Do not pad the Input/InputContainer icon (#7282) 2016-12-16 12:10:57 -08:00
Matt Perry
bf289a2aea Animate size of label text over text fields. (#7241)
* Animate size of label text over text fields.

Also fade in the hintText so it doesn't pop in immediately as the label
text slides up.

Fixes https://github.com/flutter/flutter/issues/7217

* rm annotations

* test

* rename
2016-12-14 15:29:36 -05:00
Matt Perry
7d346dd184 Improve docs for Input and Form and friends. (#7208)
Fixes https://github.com/flutter/flutter/issues/7017
2016-12-12 14:24:45 -05:00
Matt Perry
5a864ded89 Always reserve space for error text in text fields. (#7206)
Fixes https://github.com/flutter/flutter/issues/6943
2016-12-12 14:24:36 -05:00
Alexandre Ardhuin
9eaaa91df7 use isEmpty and isNotEmpty (#7207) 2016-12-09 15:37:42 -08:00
Alexandre Ardhuin
1272e053c7 prefer_const_constructor in packages/flutter/lib (#7179) 2016-12-09 13:53:17 -08:00
Hans Muller
f6cde06af3 Correct scrollable tabs fling velocity (#7170) 2016-12-06 10:48:45 -08:00
Hans Muller
a3183a4a86 BottomNavigationBar accepts widget icons (#7161) 2016-12-06 08:14:36 -08:00
Matt Perry
7034a03c67 Open the keyboard without explicit tap for autofocused Inputs. (#7129)
Fixes https://github.com/flutter/flutter/issues/7035
2016-12-05 13:39:28 -05:00
Hans Muller
5eada49b05 ThemeData.copyWith() should not have a primarySwatch parameter (#7127) 2016-12-02 14:21:34 -08:00
Alexandre Ardhuin
b670ce4bcc prefer const constructor (#7118) 2016-12-01 09:43:08 -08:00
Hans Muller
7667a3f8eb DropdownButton hint (#7114) 2016-12-01 07:27:14 -08:00
Hans Muller
ba4ae45e6f Scaffold backgroundColor (#7104) 2016-11-30 15:50:23 -08:00
Adam Barth
f960215167 Remove unneeded analyzer ignores (#7109)
We don't need these anymore.
2016-11-30 14:54:01 -08:00
Adam Barth
56f4fe42fd Improve showSnackBar docs (#7092)
Fixes #6915
2016-11-30 09:55:17 -08:00
Michael Beckler
28bfbd6c58 Changed DefaultTextStyle to consider the TextTheme defined in the context for Bottom Nav Bar (#7042)
* Changed DefaultTextStyle to consider the TextTheme defined in the context

* added regression test for bottom nav bar text themes

* added second regression test for fixed navbar
2016-11-30 09:51:49 -08:00
Ian Hickson
744e89f156 More docs and other tweaks (#7026)
This fixes minor issues I ran into while using Flutter.
2016-11-27 13:50:37 -08:00
Ian Hickson
cdf2779e63 More docs for license screens (#6954) 2016-11-27 10:00:47 -08:00
Hans Muller
e3d0544954 Report why a snackbar was closed (#6996) 2016-11-23 10:34:53 -08:00
Hans Muller
37daf034db Make the InputContainer underline's visibility configurable (#6976) 2016-11-22 09:07:21 -08:00
Adam Barth
e0a9c0a98a Improve Scaffold.drawer and Navigator.popUntil docs (#6977)
Fixes #6963
2016-11-21 23:36:32 -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
516ac574c0 Allow null DropdownButton values (#6971) 2016-11-21 16:36:19 -08:00
Ian Hickson
9c1a24fa72 Reexport meta from foundation. (#6938) 2016-11-18 21:22:32 -08:00
Hans Muller
1e76c1f811 Added backgroundColor to SnackBar (#6929) 2016-11-18 11:07:41 -08:00
Hans Muller
5ceaaeefce Add dense layout support to dropdown (#6906) 2016-11-18 10:30:58 -08:00
Jason Simmons
e7c2571b57 Handle empty sizes in AppBar's toolbar layout (#6894) 2016-11-16 12:31:56 -08:00
Hans Muller
a7360d24fe Factor out Input's layout: add InputContainer etc (#6881) 2016-11-16 08:53:07 -08:00
Michael 'afrolion' Perrotte
4bc00df7f6 fixed typo (#6888)
`[IconButton]` is referenced as singular everywhere else, so the _most correct_ version would be singular (`[IconButton]`) with the `s` outside of the brackets.
2016-11-15 22:24:28 -08:00
Hans Muller
f496ad055a Fix GridTileBar layout (#6844) 2016-11-15 12:01:27 -08:00
Ian Hickson
df25e4899d Provide a way to override the Material border radius (#6828)
This should help a bit with people trying to make apps that have a
Material feel but don't necessarily exactly fit the Material spec.
2016-11-12 15:09:12 -08:00
Chris Bracken
d0ff41ec35 Add accentTextTheme and accentIconTheme to ThemeData (#6808)
These define a TextTheme and IconTheme that contrast with the accent
colour brightness. Also adjust default accentColorBrightness to match
Material spec examples (dark text/icons on teal in Dark theme).

Update material components to use accentTextTheme, accentIconTheme:
* DatePicker selection
* Floating action button icon
* TimePicker selection
* Slider label text
2016-11-10 15:33:02 -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
Ian Hickson
7f182dacb7 A variety of trivial fixes. (#6752) 2016-11-08 15:16:39 -08:00
Ian Hickson
b9a620694c CircleAvatar docs (#6735) 2016-11-08 14:49:49 -08:00
Hans Muller
74dd0a3a2c Input refactoring: added an InputField widget (#6733) 2016-11-07 14:38:41 -08:00