Call it Flutter Gallery (#3801)
@ -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
|
||||
|
@ -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
|
||||
|
19
examples/flutter_gallery/android/AndroidManifest.xml
Normal 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>
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
@ -1,4 +1,4 @@
|
||||
name: material_gallery
|
||||
name: flutter_gallery
|
||||
uses-material-design: true
|
||||
assets:
|
||||
- assets/flutter_logo.png
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 869 B After Width: | Height: | Size: 869 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 425 B |
Before Width: | Height: | Size: 952 B After Width: | Height: | Size: 952 B |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 952 B After Width: | Height: | Size: 952 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
@ -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>
|
24
examples/flutter_gallery/lib/demo/fail.dart
Normal 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))
|
||||
)
|
||||
)
|
||||
]
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
@ -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); },
|
9
examples/flutter_gallery/material_gallery/.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
.DS_Store
|
||||
.atom/
|
||||
.idea
|
||||
.packages
|
||||
.pub/
|
||||
build/
|
||||
ios/.generated/
|
||||
packages
|
||||
pubspec.lock
|
12
examples/flutter_gallery/material_gallery/README.md
Normal 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.
|
@ -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" />
|
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 4.1 KiB |