Call it Flutter Gallery (#3801)

This commit is contained in:
Hans Muller 2016-05-09 11:00:54 -07:00
parent a5b198e9b9
commit 74c3e74fba
195 changed files with 7420 additions and 34 deletions

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Make `n` copies of material_gallery.
/// Make `n` copies of flutter_gallery.
import 'dart:io';
@ -27,13 +27,13 @@ void main(List<String> args) {
ArgResults results = argParser.parse(args);
if (results['help']) {
print('Generate n copies of material_gallery.\n');
print('Generate n copies of flutter_gallery.\n');
print('usage: dart mega_gallery.dart <options>');
print(argParser.usage);
exit(0);
}
Directory source = new Directory(_normalize('examples/material_gallery'));
Directory source = new Directory(_normalize('examples/flutter_gallery'));
Directory out = new Directory(_normalize(results['out']));
if (results['delete']) {
@ -55,10 +55,10 @@ void main(List<String> args) {
print('Stats:');
print(' packages/flutter : ${getStatsFor(new Directory("packages/flutter"))}');
print(' examples/material_gallery : ${getStatsFor(new Directory("examples/material_gallery"))}');
print(' examples/flutter_gallery : ${getStatsFor(new Directory("examples/flutter_gallery"))}');
print('');
print('Making $copies copies of material_gallery:');
print('Making $copies copies of flutter_gallery:');
Directory lib = _dir(out, 'lib');
if (lib.existsSync())

View File

@ -13,7 +13,7 @@ Available examples include:
- **Hello, world** The [hello world app](hello_world) is a basic app that shows
the text "hello, world."
- **Material Gallery** The [material gallery app](material_gallery) showcases
- **Flutter gallery** The [flutter gallery app](flutter_gallery) showcases
Flutter's implementation of [material design](https://www.google.com/design/spec/material-design/introduction.html).
- **Layers** The [layers vignettes](layers) show how to use the various layers

View File

@ -1,6 +1,6 @@
# Flutter Material Gallery
# Flutter gallery
Demo app for the Material Design widgets implemented in Flutter.
Demo app for the Material Design widgets and other features provided by Flutter.
## Icon

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="io.flutter.MaterialGallery" android:versionCode="1" android:versionName="0.0.1">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET"/>
<application android:icon="@mipmap/ic_launcher" android:label="Flutter gallery" android:name="org.domokit.sky.shell.SkyApplication">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize" android:hardwareAccelerated="true" android:launchMode="singleTask" android:name="org.domokit.sky.shell.SkyActivity" android:theme="@android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -1,4 +1,4 @@
name: material_gallery
name: flutter_gallery
uses-material-design: true
assets:
- assets/flutter_logo.png

View File

@ -11,7 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Material Gallery</string>
<string>Flutter gallery</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>

View File

@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
class LimitDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('LimitedBox test')
),
body: new Block(
children: <Widget>[
new LimitedBox(
maxWidth: 100.0,
maxHeight: 100.0,
child: new Container(
decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FF00))
)
)
]
)
);
}
}

View File

@ -60,7 +60,7 @@ class _SelectionControlsDemoState extends State<SelectionControlsDemo> {
];
return new TabbedComponentDemoScaffold(
title: 'Selection Controls',
title: 'Selection controls',
demos: demos
);
}

View File

@ -11,14 +11,14 @@ const String _introText =
class TooltipDemo extends StatelessWidget {
static const String routeName = '/tooltip';
static const String routeName = '/tooltips';
@override
Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context);
return new Scaffold(
appBar: new AppBar(
title: new Text('Tooltip')
title: new Text('Tooltips')
),
body: new Builder(
builder: (BuildContext context) {

View File

@ -68,7 +68,7 @@ class GalleryAppState extends State<GalleryApp> {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Material Gallery',
title: 'Flutter Gallery',
theme: _useLightTheme ? _kGalleryLightTheme : _kGalleryDarkTheme,
showPerformanceOverlay: _showPerformanceOverlay,
routes: kRoutes,

View File

@ -270,7 +270,7 @@ class FullScreenCodeDialogState extends State<FullScreenCodeDialog> {
icon: Icons.clear,
onPressed: () { Navigator.pop(context); }
),
title: new Text('Example Code')
title: new Text('Example code')
),
body: body
);

View File

@ -32,7 +32,7 @@ class GalleryDrawer extends StatelessWidget {
return new Drawer(
child: new Block(
children: <Widget>[
new DrawerHeader(child: new Text('Flutter Gallery')),
new DrawerHeader(child: new Text('Flutter gallery')),
new DrawerItem(
icon: Icons.brightness_5,
onPressed: () { onThemeChanged(true); },

View File

@ -0,0 +1,9 @@
.DS_Store
.atom/
.idea
.packages
.pub/
build/
ios/.generated/
packages
pubspec.lock

View File

@ -0,0 +1,12 @@
# Flutter gallery
Demo app for the Material Design widgets and other features provided by Flutter.
## Icon
Icon was generated using Android Asset Studio:
https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=image&foreground.space.trim=0&foreground.space.pad=0.1&foreColor=607d8b%2C0&crop=0&backgroundShape=square&backColor=ffffff%2C100&effects=none
From the Flutter Logo:
https://github.com/flutter/website/blob/master/_includes/logo.html
which appears to be CC-BY 4.0.

View File

@ -8,7 +8,7 @@
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET"/>
<application android:icon="@mipmap/ic_launcher" android:label="Flutter Material" android:name="org.domokit.sky.shell.SkyApplication">
<application android:icon="@mipmap/ic_launcher" android:label="Flutter gallery" android:name="org.domokit.sky.shell.SkyApplication">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize" android:hardwareAccelerated="true" android:launchMode="singleTop" android:name="org.domokit.sky.shell.SkyActivity" android:theme="@android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Some files were not shown because too many files have changed in this diff Show More