Commit 74c3e74f authored by Hans Muller's avatar Hans Muller

Call it Flutter Gallery (#3801)

parent a5b198e9
......@@ -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())
......
......@@ -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
......
# 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
......
<?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>
name: material_gallery
name: flutter_gallery
uses-material-design: true
assets:
- assets/flutter_logo.png
......
......@@ -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>
......
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))
)
)
]
)
);
}
}
......@@ -60,7 +60,7 @@ class _SelectionControlsDemoState extends State<SelectionControlsDemo> {
];
return new TabbedComponentDemoScaffold(
title: 'Selection Controls',
title: 'Selection controls',
demos: demos
);
}
......
......@@ -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) {
......
......@@ -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,
......
......@@ -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
);
......
......@@ -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); },
......
.DS_Store
.atom/
.idea
.packages
.pub/
build/
ios/.generated/
packages
pubspec.lock
# 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.
......@@ -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" />
......
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment