Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
8886cae2
Commit
8886cae2
authored
Aug 03, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #433 from abarth/widgets_dart
Add a widgets.dart uber library
parents
99c0edd6
e7bd46b9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
98 deletions
+52
-98
main.dart
packages/flutter/example/address_book/lib/main.dart
+1
-17
main.dart
packages/flutter/example/demo_launcher/lib/main.dart
+1
-11
main.dart
packages/flutter/example/fitness/lib/main.dart
+3
-28
main.dart
packages/flutter/example/hello_world/lib/main.dart
+1
-3
main.dart
packages/flutter/example/mine_digger/lib/main.dart
+1
-8
main.dart
packages/flutter/example/stocks/lib/main.dart
+1
-31
widgets.dart
packages/flutter/lib/widgets.dart
+44
-0
No files found.
packages/flutter/example/address_book/lib/main.dart
View file @
8886cae2
...
...
@@ -2,26 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library
address_book
;
import
'package:sky/editing/input.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/theme/typography.dart'
as
typography
;
import
'package:sky/widgets/basic.dart'
;
import
'package:sky/widgets/default_text_style.dart'
;
import
'package:sky/widgets/dialog.dart'
;
import
'package:sky/widgets/floating_action_button.dart'
;
import
'package:sky/widgets/flat_button.dart'
;
import
'package:sky/widgets/icon.dart'
;
import
'package:sky/widgets/icon_button.dart'
;
import
'package:sky/widgets/material.dart'
;
import
'package:sky/widgets/navigator.dart'
;
import
'package:sky/widgets/scaffold.dart'
;
import
'package:sky/widgets/scrollable.dart'
;
import
'package:sky/widgets/task_description.dart'
;
import
'package:sky/widgets/theme.dart'
;
import
'package:sky/widgets/tool_bar.dart'
;
import
'package:sky/widgets/widget.dart'
;
import
'package:sky/widgets.dart'
;
class
Field
extends
Component
{
Field
({
...
...
packages/flutter/example/demo_launcher/lib/main.dart
View file @
8886cae2
...
...
@@ -2,22 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library
demo_launcher
;
import
'package:sky/mojo/activity.dart'
as
activity
;
import
'package:sky/mojo/asset_bundle.dart'
;
import
'package:sky/painting/box_painter.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/theme/typography.dart'
as
typography
;
import
'package:sky/widgets/basic.dart'
;
import
'package:sky/widgets/card.dart'
;
import
'package:sky/widgets/material.dart'
;
import
'package:sky/widgets/scaffold.dart'
;
import
'package:sky/widgets/task_description.dart'
;
import
'package:sky/widgets/theme.dart'
;
import
'package:sky/widgets/tool_bar.dart'
;
import
'package:sky/widgets/scrollable.dart'
;
import
'package:sky/widgets/ink_well.dart'
;
import
'package:sky/widgets.dart'
;
AssetBundle
_initBundle
(
)
{
if
(
rootBundle
!=
null
)
...
...
packages/flutter/example/fitness/lib/main.dart
View file @
8886cae2
...
...
@@ -4,35 +4,10 @@
library
fitness
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/widgets/basic.dart'
;
import
'package:sky/widgets/navigator.dart'
;
import
'package:sky/widgets/theme.dart'
;
import
'package:sky/widgets/widget.dart'
;
import
'package:sky/widgets/task_description.dart'
;
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/widgets/button_base.dart'
;
import
'package:sky/widgets/dialog.dart'
;
import
'package:sky/widgets/drawer.dart'
;
import
'package:sky/widgets/drawer_divider.dart'
;
import
'package:sky/widgets/drawer_header.dart'
;
import
'package:sky/widgets/drawer_item.dart'
;
import
'package:sky/widgets/flat_button.dart'
;
import
'package:sky/widgets/floating_action_button.dart'
;
import
'package:sky/widgets/icon_button.dart'
;
import
'package:sky/widgets/icon.dart'
;
import
'package:sky/widgets/ink_well.dart'
;
import
'package:sky/widgets/material.dart'
;
import
'package:sky/widgets/radio.dart'
;
import
'package:sky/widgets/scaffold.dart'
;
import
'package:sky/widgets/scrollable.dart'
;
import
'package:sky/widgets/snack_bar.dart'
;
import
'package:sky/widgets/tool_bar.dart'
;
import
'package:sky/widgets/card.dart'
;
import
'package:sky/widgets/dismissable.dart'
;
import
'package:sky/editing/input.dart'
;
import
'package:sky/widgets/default_text_style.dart'
;
import
'package:sky/widgets/switch.dart'
;
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/widgets.dart'
;
part
'feed.dart'
;
part
'fitness_item.dart'
;
...
...
packages/flutter/example/hello_world/lib/main.dart
View file @
8886cae2
...
...
@@ -2,9 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library
hello_world
;
import
'package:sky/widgets/basic.dart'
;
import
'package:sky/widgets.dart'
;
class
HelloWorldApp
extends
App
{
Widget
build
()
{
...
...
packages/flutter/example/mine_digger/lib/main.dart
View file @
8886cae2
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library
mine_digger
;
import
'dart:sky'
as
sky
;
import
'dart:math'
;
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/rendering/flex.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/widgets/basic.dart'
;
import
'package:sky/widgets/widget.dart'
;
import
'package:sky/widgets/scaffold.dart'
;
import
'package:sky/widgets/task_description.dart'
;
import
'package:sky/widgets/theme.dart'
;
import
'package:sky/widgets/tool_bar.dart'
;
import
'package:sky/widgets.dart'
;
// Classic minesweeper-inspired game. The mouse controls are standard
// except for left + right combo which is not implemented. For touch,
...
...
packages/flutter/example/stocks/lib/main.dart
View file @
8886cae2
...
...
@@ -12,37 +12,7 @@ import 'package:sky/painting/text_style.dart';
import
'package:sky/rendering/box.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/theme/typography.dart'
as
typography
;
import
'package:sky/widgets/basic.dart'
;
import
'package:sky/widgets/checkbox.dart'
;
import
'package:sky/widgets/default_text_style.dart'
;
import
'package:sky/widgets/dialog.dart'
;
import
'package:sky/widgets/drawer_divider.dart'
;
import
'package:sky/widgets/drawer_header.dart'
;
import
'package:sky/widgets/drawer_item.dart'
;
import
'package:sky/widgets/drawer.dart'
;
import
'package:sky/widgets/flat_button.dart'
;
import
'package:sky/widgets/floating_action_button.dart'
;
import
'package:sky/widgets/icon_button.dart'
;
import
'package:sky/widgets/icon.dart'
;
import
'package:sky/widgets/ink_well.dart'
;
import
'package:sky/widgets/material.dart'
;
import
'package:sky/widgets/modal_overlay.dart'
;
import
'package:sky/widgets/navigator.dart'
;
import
'package:sky/widgets/popup_menu_item.dart'
;
import
'package:sky/widgets/popup_menu.dart'
;
import
'package:sky/widgets/radio.dart'
;
import
'package:sky/widgets/scaffold.dart'
;
import
'package:sky/widgets/scrollable.dart'
;
import
'package:sky/widgets/snack_bar.dart'
;
import
'package:sky/widgets/switch.dart'
;
import
'package:sky/widgets/tabs.dart'
;
import
'package:sky/widgets/task_description.dart'
;
import
'package:sky/widgets/theme.dart'
;
import
'package:sky/widgets/tool_bar.dart'
;
import
'package:sky/widgets/widget.dart'
;
//TODO(jimsimon): Is this needed?
export
'package:sky/widgets/popup_menu.dart'
show
PopupMenuStatus
;
import
'package:sky/widgets.dart'
;
import
'stock_data.dart'
;
...
...
packages/flutter/lib/widgets.dart
0 → 100644
View file @
8886cae2
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
export
'widgets/animated_component.dart'
;
export
'widgets/animated_container.dart'
;
export
'widgets/animation_intentions.dart'
;
export
'widgets/basic.dart'
;
export
'widgets/block_viewport.dart'
;
export
'widgets/button_base.dart'
;
export
'widgets/card.dart'
;
export
'widgets/checkbox.dart'
;
export
'widgets/default_text_style.dart'
;
export
'widgets/dialog.dart'
;
export
'widgets/dismissable.dart'
;
export
'widgets/drawer.dart'
;
export
'widgets/drawer_divider.dart'
;
export
'widgets/drawer_header.dart'
;
export
'widgets/drawer_item.dart'
;
export
'widgets/flat_button.dart'
;
export
'widgets/floating_action_button.dart'
;
export
'widgets/focus.dart'
;
export
'widgets/icon_button.dart'
;
export
'widgets/icon.dart'
;
export
'widgets/ink_well.dart'
;
export
'widgets/material_button.dart'
;
export
'widgets/material.dart'
;
export
'widgets/modal_overlay.dart'
;
export
'widgets/navigator.dart'
;
export
'widgets/popup_menu.dart'
;
export
'widgets/popup_menu_item.dart'
;
export
'widgets/radio.dart'
;
export
'widgets/raised_button.dart'
;
export
'widgets/scaffold.dart'
;
export
'widgets/scrollable.dart'
;
export
'widgets/snack_bar.dart'
;
export
'widgets/switch.dart'
;
export
'widgets/tabs.dart'
;
export
'widgets/task_description.dart'
;
export
'widgets/theme.dart'
;
export
'widgets/toggleable.dart'
;
export
'widgets/tool_bar.dart'
;
export
'widgets/transitions.dart'
;
export
'widgets/widget.dart'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment