951 Commits

Author SHA1 Message Date
Hixie
9fdfd913b7 Remove an infinity in layout code. 2015-10-12 17:07:27 -07:00
Ian Hickson
0252c38d2e Merge pull request #1585 from Hixie/strong-lint
Lots of trivial warning fixes
2015-10-12 16:35:28 -07:00
Adam Barth
5fc5d3e0f0 Remove dart:ui_builtin_natives
Now this code is just in dart:ui.
2015-10-12 16:33:15 -07:00
Hixie
9f174def11 Lots of trivial warning fixes
Add type annotations in many places.
Fix some identifiers to have more lint-satisfying names.
Make all operator==s consistent in style.
Reorder some functions for consistency.
Make ParentData no longer dynamic, and fix all the code around that.
2015-10-12 16:31:20 -07:00
Adam Barth
be7074806c Change the default MaterialType to canvas
Canvas is by far the most popular type of material by call site (and makes for
a faster default because it doesn't have a RRect clip).
2015-10-12 09:36:47 -07:00
Adam Barth
9f736f197b Reattach fitness to the build
We can build Fitness again now that playfair has been updated to account for
the package:flutter rename.
2015-10-12 00:24:24 -07:00
Adam Barth
e4f201b299 Rev pub package 2015-10-11 12:14:46 -07:00
Adam Barth
55c6cb7efe Merge pull request #1572 from abarth/bin_flutter
Add a bin/flutter.dart to the flutter package
2015-10-11 12:03:21 -07:00
Adam Barth
bea77286a8 Rev pub package 2015-10-10 00:52:32 -07:00
Adam Barth
b0f6dc75d9 Add a bin/flutter.dart to the flutter package
This command will eventually become the main entrypoint for the Flutter tools.
Also, fixup a reference to the "sky" package in sky_tool.
2015-10-10 00:43:59 -07:00
Adam Barth
f6e63440b4 Rev pub packages 2015-10-09 23:09:22 -07:00
Adam Barth
e2a83ecbf9 Update package:flutter pubspec 2015-10-09 21:00:58 -07:00
Adam Barth
4d0b7911a0 Import dart:ui as ui (instead of as sky) 2015-10-09 20:55:54 -07:00
Adam Barth
dca1370bc6 Rename package:sky to package:flutter 2015-10-09 20:44:52 -07:00
Adam Barth
72c103cefa Rename dart:sky to dart:ui 2015-10-09 19:27:13 -07:00
Adam Barth
87114f9c05 Fix updater pubspec 2015-10-09 18:56:16 -07:00
Collin Jackson
fe4ce27fc7 Merge pull request #1566 from collinjackson/dont_antialias_images
Painting images should not anti-alias (improves performance)
2015-10-09 14:59:50 -07:00
Adam Barth
1a592e20e3 Rev pub package 2015-10-09 14:55:33 -07:00
Collin Jackson
cd3adc25ee Painting images should not anti-alias (improves performance) 2015-10-09 14:54:03 -07:00
Adam Barth
42af99224d Rev pub packages 2015-10-09 14:43:32 -07:00
Adam Barth
a9f33ddb5a Merge pull request #1564 from abarth/fast_white_icons
Make it fast to draw color icons
2015-10-09 14:07:45 -07:00
Adam Barth
b6d7d623e8 Make it fast to draw color icons
Instead of using a ColorFilter, plumb the information down to Icon and thereby
to Image.
2015-10-09 14:04:54 -07:00
Hixie
7496167d60 Avoid painting previous routes redundantly
...once the animation is done.
2015-10-09 14:03:54 -07:00
Hixie
203db4ac6a Remove workarounds that avoided 'super' in mixins
Dart supports this properly now.
2015-10-09 11:24:50 -07:00
Adam Barth
703be57aed Merge pull request #1559 from abarth/new_text_painter
Add a flag to TextPainter to use ParagraphBuilder
2015-10-09 11:23:46 -07:00
Adam Barth
be15d09191 Add a flag to TextPainter to use ParagraphBuilder
This patch makes it easier to experiment with work on ParagraphBuilder.
2015-10-09 11:20:26 -07:00
Adam Barth
1f33a30b04 Remove circular imports of the material.dart library 2015-10-09 10:39:05 -07:00
Adam Barth
6483ebeecc Rename App to MaterialApp
MaterialApp assumes that you're using material design.

Also move radial reaction and fix imports for stats box.
2015-10-09 10:27:22 -07:00
Adam Barth
0d1625dec1 Merge pull request #1556 from abarth/split_widgets
Split material design widgets out of widgets.dart
2015-10-09 10:14:02 -07:00
Adam Barth
3b06c85c6d Split material design widgets out of widgets.dart
These are now part of material.dart.
2015-10-09 10:07:06 -07:00
Hixie
ad9cd01513 Relative paths in internal flutter libraries
Now that you import a top-level file for each layer of the Flutter
framework, within the framework we can use relative paths without being
worried about the copy/pasta problem we used to have.
2015-10-09 09:56:40 -07:00
Adam Barth
0dbdfd7e63 Rev pub package 2015-10-09 09:37:23 -07:00
Adam Barth
9144356792 Rev pub package 2015-10-09 09:32:16 -07:00
Hixie
939cbe5451 Have Flat buttons set their default text styles.
Also, have dialog buttons use the accent colour.
Also, generally rationalise some of this stuff to match Material better.
2015-10-08 16:49:57 -07:00
Hixie
fe5fde162e Changing themes caused crash
The root cause was that we crawled the tree to mark anyone who depended
on the updated theme dirty _after_ we crawled it to rebuild it. Thus, if
anyone was already marked dirty when the process started, then got
marked clean by the first (rebuild) walk, then got marked dirty again by
the notification, they'd be clean when they got the notification,
despite already being in the dirty list, which would cause an assertion.

Also IconTheme didn't have an operator==, so it was independently too
aggressive about updates.
2015-10-08 15:21:18 -07:00
Hans Muller
dd40abc88c Merge pull request #1549 from HansMuller/dismissable_dispose
Defunct DismissableState should not have live animations
2015-10-08 13:56:33 -07:00
Hans Muller
77c135f4f9 Defunct DismissableState should not have live animations 2015-10-08 12:19:06 -07:00
Hixie
caea42b426 Drawer test. 2015-10-08 12:17:53 -07:00
Chinmay Garde
887e06f555 Format trace file names so they are easier to organize 2015-10-08 11:50:51 -07:00
Hans Muller
101d4f9e7e Allow Stacks with no children or only poisitioned children 2015-10-08 11:09:41 -07:00
Adam Barth
593098b882 Merge pull request #1540 from abarth/rm_button_state
Remove ButtonState
2015-10-08 10:29:32 -07:00
Adam Barth
2510e31602 Merge pull request #1538 from abarth/fix_snackbar
SnackBar throws exception on creation
2015-10-08 10:27:58 -07:00
Adam Barth
4e8ee23a1a Remove ButtonState
Clients should just use a GestureDetector (or an InkWell) instead.
2015-10-08 10:26:34 -07:00
Hans Muller
2271340920 IndexedStack
Added horizontal and vertical alignment properties to Stack so that the origin of non-positioned children can be specified. Currently all of the non-positioned children just end up with their top-left at 0,0. Now, for example, you can center the children by specifying verticalAlignment: 0.5, horizontalAlignment: 0.5.

Added IndexedStack which only paints the stack child specified by the index property. Since it's a Stack, it's as big as the biggest non-positioned child. This component will be essential for building mobile drop down menus.

Added a (likely temporary) example that demonstrates IndexedStack.
2015-10-08 10:21:24 -07:00
Adam Barth
8547676089 SnackBar throws exception on creation
It was trying to grab the route's performance before it was created. Now we
create the performance eagerly again.
2015-10-08 10:17:19 -07:00
Adam Barth
4198ec0ff4 Merge pull request #1500 from abarth/drawer_animate_back
The Drawer should animate out when popped off the navigator
2015-10-08 10:16:34 -07:00
Adam Barth
78dfdde46c Merge pull request #1535 from abarth/button_highlight
FlatButton highlights but doesn't tap around edge
2015-10-08 10:14:40 -07:00
Hans Muller
2fcd86038f BoxConstraints.toString() should show closed intervals 2015-10-08 09:55:51 -07:00
Adam Barth
0777d98f1c FlatButton highlights but doesn't tap around edge
Now we trigger the highlight from the InkWell so that it matches the tap.

Fixes #1525
2015-10-08 09:45:29 -07:00
Adam Barth
cbcb1db93a The Drawer should animate out when popped off the navigator
Now with more clear ownership over the Performance.
2015-10-07 20:09:45 -07:00