2902 Commits

Author SHA1 Message Date
Adam Barth
7192dbb1c6 Bottom sheets shouldn't dismiss when flung up 2015-11-30 13:36:10 -08:00
Hans Muller
d293bb8cc8 Merge pull request #622 from HansMuller/tabs_scroll_animation
Tabs scroll animation

The TabBar's selection is now represented by a TabBarSelection object which encapsulates both the previous and currently selected indices and the Performance used to animate the selection indicator.

Added a TabBarView class which displays a tab's contents. It uses a shared TabBarSelection to stay in sync with a TabBar. The TabBarView scrolls in sync with the TabBar when the selection changes. Eventually it will allow one to fling the selection forward or backwards.

Added a tabBar property to ToolBar. Typically the corresponding TabBarView will be the body of the toolbar's Scaffold.

Removed TabNavigatorView and TabNavigator.

Added a widget gallery tabs demo page. Removed the old tabs demo.
2015-11-30 12:22:10 -08:00
Hans Muller
9de4df1e8b TabNavigator animates selected TabView
The TabBar's selection is now represented by a TabBarSelection object which encapsulates both the previous and currently selected indices and the Performance used to animate the selection indicator.

Added a TabBarView class which displays a tab's contents. It uses a shared TabBarSelection to stay in sync with a TabBar. The TabBarView scrolls in sync with the TabBar when the selection changes. Eventually it will allow one to fling the selection forward or backwards.

Added a tabBar property to ToolBar. Typically the corresponding TabBarView will be the body of the toolbar's Scaffold.

Removed TabNavigatorView and TabNavigator.

Added a widget gallery tabs demo page. Removed the old tabs demo.
2015-11-30 12:13:17 -08:00
Adam Barth
40b3cf3f0f Merge pull request #612 from abarth/reorg_tools
Clean up code organization in flutter_tools
2015-11-28 21:34:01 -08:00
Adam Barth
9662d49e12 Clean up code organization in flutter_tools
1) Moved basic utility code into base/ directory to make it clear which code
   doesn't depend on Flutter-specific knowldge.
2) Move the CommandRunner subclasses into a runner/ directory because these
   aren't commands themselves.
2015-11-28 21:16:55 -08:00
Adam Barth
3821560841 Merge pull request #611 from abarth/rm_build_sky_apk
Remove build_sky_apk.dart
2015-11-28 19:32:39 -08:00
Adam Barth
c477b1250b Remove build_sky_apk.dart
This script has been subsumed by `flutter apk`.
2015-11-28 19:16:23 -08:00
Ian Hickson
8f7e6204a9 Merge pull request #609 from Hixie/upgrade-harder
dev/update_packages.dart --upgrade
2015-11-27 21:07:26 -08:00
Ian Hickson
92a6212007 dev/update_packages.dart --upgrade
Add an --upgrade flag to the dev/update_packages.dart flag which runs
'pub upgrade' instead of 'pub get'. Tell people to use this when using
'flutter analyze' since 'pub get' doesn't have the same guarantee of
getting everything in sync.
2015-11-27 20:01:13 -08:00
Adam Barth
33ca330797 Remove two unused imports 2015-11-26 19:20:30 -08:00
Adam Barth
7c7a4fdee3 Merge pull request #603 from abarth/disabled_switch
Properly paint disabled switches
2015-11-26 18:52:14 -08:00
Adam Barth
3fbfe732f4 Properly paint disabled switches
Also, refactor more common code into RenderToggleable and handle dark themes
more correctly.

Fixes #601
2015-11-26 11:50:15 -08:00
Adam Barth
d449eec62f Merge pull request #602 from abarth/type_lists
Add missing types for list literals
2015-11-26 11:37:27 -08:00
Adam Barth
0844233deb Add missing types for list literals 2015-11-26 10:40:06 -08:00
Adam Barth
50b6bde887 Merge pull request #600 from abarth/selection_controls
Improve Material selection controls
2015-11-26 02:01:21 -08:00
Adam Barth
3f06da0eaa Improve Material selection controls
- These controls now have proper radial reactions.
 - You can drag the switch.
 - The radio button animates properly.
 - There's a demo in the Material Gallery
2015-11-26 01:54:34 -08:00
Adam Barth
5873905e5a Merge pull request #599 from abarth/toggleable
Move RenderTogglable to material.dart
2015-11-25 23:33:07 -08:00
Adam Barth
d6e21d7fc3 Merge pull request #598 from abarth/gallery
Move Material Gallery demos into a directory
2015-11-25 23:33:04 -08:00
Adam Barth
9fae3864a3 Move Material Gallery demos into a directory
Also, clean up the main.dart file to prepare for making dynamic theme changes.
2015-11-25 23:16:39 -08:00
Adam Barth
09cf84d9b6 Move RenderTogglable to material.dart
Fixes #219
2015-11-25 23:15:17 -08:00
Ian Hickson
77cf420aab Merge pull request #597 from Hixie/fractional-offset-operators
Operators needed to lerp a FractionalOffset.
2015-11-25 18:07:49 -08:00
Ian Hickson
bb2443794f Merge pull request #596 from Hixie/icons
List assets used by Stocks demo
2015-11-25 18:07:37 -08:00
Ian Hickson
6e73bbcc99 Merge pull request #595 from Hixie/trivial-cleanup
Fix minor typos and style nits.
2015-11-25 18:07:33 -08:00
Ian Hickson
19e06121b8 Merge pull request #594 from Hixie/mixin-routes
Turn the LocalHistoryRoute into a mixin.
2015-11-25 18:07:24 -08:00
Hixie
a03757e443 Operators needed to lerp a FractionalOffset.
Without this, you can't use AnimatedValue<FractionalOffset>, because its
lerp() function uses the operators.
2015-11-25 17:15:00 -08:00
Hixie
c40125e99c List assets used by Stocks demo 2015-11-25 17:11:42 -08:00
Hixie
993a41a452 Fix minor typos and style nits. 2015-11-25 17:03:37 -08:00
Hixie
4e513822ef Turn the LocalHistoryRoute into a mixin. 2015-11-25 17:00:05 -08:00
Ian Hickson
1e8fa40450 Merge pull request #593 from Hixie/yak2-navigator-API
Clean up the Navigator API again.
2015-11-25 16:37:05 -08:00
Hixie
88e74693ae Clean up the Navigator API again.
* Split didPush() into didPush() and install(), so that we can install
  the overlays without triggering the push logic. This will be used in a
  subsequent patch to implement route replacement.

* Split didPop() into didPop() and dispose(), so that we can remove
  overlays without triggering the pop logic. Also for a subsequent patch
  that implements replacement.

* Clean up _navigator on the routes when the Navigator itself is
  disposed.

* Drop the forwarding logic on willPushNext() -- now didPushNext() --
  and didPopNext(), since we no longer have StateRoutes to get in the
  way.

* Implement isCurrent more broadly and without having to keep track of
  state.

* Provide some toString()s on NamedRouteSettings and ModalRoutes.

* Make OverlayState.initState() use the insertAl functionality.

* Make OverlayRoute.builders abstract since that way you'll catch when
  you forget to do it. If you don't want overlays, don't inherit from
  this class.

* Made handleStatusChanged() on TransitionRoute public so that it can be
  overridden by subclasses.
2015-11-25 16:30:46 -08:00
Adam Barth
e260d7b7bf Merge pull request #592 from abarth/slider2
Animate slider radial reaction
2015-11-25 15:47:15 -08:00
Adam Barth
4fa24f5695 Animate slider radial reaction
Also, have the slider draw different in its disabled state.
2015-11-25 15:01:36 -08:00
Devon Carew
13fbafdabf Merge pull request #591 from devoncarew/log_time
print logging timestamps to profile app launch
2015-11-25 12:54:49 -08:00
Devon Carew
27f3a3a790 Merge pull request #590 from devoncarew/logs_package
allow logs to work from any location
2015-11-25 12:53:29 -08:00
Devon Carew
e36b07f7b5 print logging timestamps to profile app launch 2015-11-25 12:47:25 -08:00
Devon Carew
559ea9d08d allow logs to work from any location 2015-11-25 12:39:33 -08:00
Adam Barth
abce0533b4 Merge pull request #587 from abarth/sliders
Add a basic material slider
2015-11-25 12:34:09 -08:00
Adam Barth
0c0ae4a1a2 Merge pull request #584 from abarth/time_picker
Finish TimePicker
2015-11-25 12:31:10 -08:00
Adam Barth
e9d911f5ea Add a basic material slider
The slider in this patch works, but it's missing animations and many subtle
touches.
2015-11-25 12:27:57 -08:00
Adam Barth
72d2706ee1 Finish TimePicker
After this patch, TimePicker should work correctly.

Fixes #559
2015-11-25 11:17:54 -08:00
Ian Hickson
4716b70855 Merge pull request #582 from Hixie/bad-opacity
Opacity was dropping stuff on the floor.
2015-11-25 11:08:45 -08:00
Hixie
9c5c511517 Opacity was dropping stuff on the floor.
Turns out we passed the wrong bounds to the PaintingContext constructor.

Fix, and assert that we don't do that again.
2015-11-25 11:00:02 -08:00
Ian Hickson
83baf84edf Merge pull request #588 from Hixie/rev
Rev the engine dependency to the latest engine.
2015-11-25 10:59:49 -08:00
Hixie
b5c9d275dd Rev the engine dependency to the latest engine. 2015-11-25 10:59:20 -08:00
Devon Carew
a368cd74eb Merge pull request #586 from devoncarew/analysis_issues
fix analysis errors; add missing icon
2015-11-24 23:27:06 -08:00
Devon Carew
8500aca7ad fix analysis errors; add missing icon 2015-11-24 23:19:25 -08:00
Adam Barth
134b11e361 Merge pull request #583 from abarth/rm_start_test
Remove start_test
2015-11-24 18:46:21 -08:00
Adam Barth
ae585eb12e Remove start_test
This test was a bad mock-based test that hasn't ever caught a bug but has
required a lot of maintenance. Currently its broken because its mock doesn't
match the real interface.
2015-11-24 17:44:15 -08:00
Adam Barth
72ae4b2e55 Merge pull request #568 from abarth/system_routing
Add support for system-level routing
2015-11-24 17:28:25 -08:00
Adam Barth
860547c1d4 Add support for system-level routing
Now you can supply a route argument to flutter start:

  $ flutter start --route /foo

which will start the app at /foo instead of /.
2015-11-24 16:13:20 -08:00