86 Commits

Author SHA1 Message Date
Alexandre Ardhuin
09276bea25
enable lint prefer_equal_for_default_values (#18156) 2018-06-05 08:50:40 +02:00
Greg Spencer
3c5a7a3005
Make non-global constants have consistent naming (with just _ instead of _k) (#17584)
Our style guide says the k's are not necessary, and it seems like a good idea to make all the code be consistent on this.

Only naming changes to private vars: no logic changes.
2018-05-17 23:04:41 -07:00
Greg Spencer
ac67efbc83
Moving API doc asset URLs to point to the new location. (#17697)
I'm moving the assets in the assets-for-api-docs repo to a slightly different location to help with organization in that repo, so this PR points the doc URLs to the new location. The old assets won't be removed until this PR makes its way to the API docs website.

No documentation or code changes here, other than changing doc image URLs.
2018-05-17 09:53:06 -07:00
Jason Simmons
466d15433f
Use Dart 2 camel case constants (#15360) 2018-03-12 11:06:32 -07:00
Greg Spencer
0259be90b8
Fix spelling errors in all the dartdocs. (#13061)
I got tired of drive-by spelling fixes, so I figured I'd just take care of them all at once.

This only corrects errors in the dartdocs, not regular comments, and I skipped any sample code in the dartdocs. It doesn't touch any identifiers in the dartdocs either. No code changes, just comments.
2017-11-17 10:05:21 -08:00
Ian Hickson
41e1eb5c64 Various docs easy fixes (#10797) 2017-06-16 16:07:59 -07:00
Ian Hickson
6f824bcec9 More documentation (#10519) 2017-06-05 22:44:49 -07:00
Ian Hickson
1b9c6a6835 More documentation (#10426) 2017-06-01 12:58:34 -07:00
Chris Bracken
5b18fca053 Add const non-null asserts where required (#9937) 2017-05-09 15:41:06 -07:00
Ian Hickson
30d4736900 Random dartdoc fixes (#9745) 2017-05-03 09:13:57 -07:00
Adam Barth
7be9115a43 Deploy @immutable in more places (#9462)
Turns out we have many immutable classes.

Fixes #6892
2017-04-19 09:30:43 -07:00
Chris Bracken
27e8cc3797 Declare locals final where not reassigned (#8564)
Covers lib/ in package:flutter.
2017-03-03 17:42:23 -08:00
Ian Hickson
5c360c8320 Minor tweaks to Curve documentation (#7353) 2017-01-05 13:10:41 -08:00
Hans Muller
c613a85c0f Invalid Curve transform parameter should assert (#7340) 2017-01-04 17:11:05 -08:00
Ian Hickson
3e3d21926b Curves.decelerate (#7284)
Port DecelerateInterpolator to Flutter.

Also, hide the Curve subclasses that you can't extend and that have no
statics and are generally not useful.
2016-12-16 15:30:41 -08:00
Adam Barth
c621ec82a0 Rename Interval.start to begin (#6115)
For consistency with Tween.

Fixes #5169
2016-09-28 10:30:50 -07:00
Dragoș Tiselice
691c25faca Renamed Step curve to Threshold. (#5755)
In the interest of using the name in the case of Material steppers,
this commit renames Step curve to Threshold.
2016-09-07 13:58:04 -07:00
Adam Barth
e4e6b01afa Adapt FlexibleSpaceBar to iOS (#5037)
We should center the title of flexible space bars on iOS.

Related to #4962
2016-07-25 17:05:29 -07:00
Hans Muller
d9b9983e1a Refresh indicator (#4788) 2016-06-30 10:07:28 -07:00
Adam Barth
fa22cf5337 Finish dartdocs for animation.dart and foundation.dart (#3963)
Everything now has dartdocs except one setter whose getter already has
docs.
2016-05-17 10:49:20 -07:00
Adam Barth
da987ed217 Snackbar opacity animation shouldn't trigger on reverse
Fixes #617
2016-03-30 17:14:38 -07:00
Ian Hickson
044ecf5410 toStrings for Animations and Animatables 2016-03-26 23:09:32 -07:00
Ian Hickson
bef6ff3b06 Provide more documentation for MojoShell
As usual, as I was doing this I ran into some stuff that seemed hard
to document as-is and so I changed it. In this case, in the "http"
library. The new code is more or less equivalent, I think, but the
resulting documentation makes it more obvious that it's wrong...
2016-03-20 23:47:19 -07:00
Hixie
797e27edd3 Add @override annotations to flutter framework 2016-03-14 14:02:26 -07:00
Andrew Wilson
203415771e And inverted and reversed curves. 2016-02-25 10:28:43 -08:00
Hixie
7c23ededef SawTooth 2016-02-12 14:20:37 -08:00
Seth Ladd
c6fc6d2aa0 Link Curve to Curves in doc comments 2015-12-20 11:45:21 -08:00
Florian Loitsch
b5aba60147 Minor modifs. 2015-12-09 17:07:51 -08:00
Hixie
bc5307f5af buildForwardTransition()
For those times when you want to do something as you move away from a
route into the next one, as well as when you move into it from the
previous one.
2015-12-02 17:16:43 -08:00
Adam Barth
f79fdff2d0 Move animation curves into a Curves namespace 2015-10-19 18:08:52 -07:00
Adam Barth
3a31f5f772 Give Interval a Curve to apply between start and end
This patch simplifies AnimationTiming and all the AnimatedValue base classes.
Also, make PopupMenu a stateless component because it has no state.

Fixes #1168
2015-10-05 12:10:48 -07:00
Andrew Wilson
8f4f3168d7 Add fast-out-slow-in Material-Design-style curve. 2015-10-01 16:46:51 -07:00
Hixie
d4dd786bd7 Allow route transitions to be more flexible
- Fix AnimationTiming to have defaults for 'interval' and 'curve' since
  that seems to be how we use it.

- Merge RouteBase.build and RouteBase.buildTransition

- Get rid of HistoryEntry, since it added nothing

- Broke out RouteBase.createPerformance() so subclasses can change what
  is created.

- Build the routes backwards so that we more efficiently avoid building
  hidden routes.

- Introduce an explicit way (!hasContent) for RouteState to avoid
  building, rather than the implicit "build returns null" we had before.
2015-09-18 14:25:18 -07:00
Hixie
69fcc4089d Clean up animation-related files.
Surface all the constructor arguments of AnimationTiming in all its subclasses.
Remove some pointless casts.
Fix some typos.
Put constructors first in class declarations.
Remove some blank lines where they just confused the structure of the code.
2015-09-14 14:07:03 -07:00
Adam Barth
05c9ca916e Add dartdoc for the animation library 2015-09-08 13:22:54 -07:00
Adam Barth
b356d14635 Introduce package:sky/animation.dart
Move the animation libraries into src/animation and change importers to use
package:sky/animation.dart. Also, move scheduler.dart into the animation
library so that the animation library can be self-contained.
2015-09-08 09:44:01 -07:00