Merge pull request #978 from eseidelGoogle/gallery_icon
Add an icon to the Flutter Material Gallery
This commit is contained in:
12
examples/material_gallery/README.md
Normal file
12
examples/material_gallery/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# Flutter Material Gallery
|
||||
|
||||
Demo app for the Material Design widgets implemented in 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/flutter.github.io/blob/master/_includes/logo.html
|
||||
which appears to be CC-BY 4.0.
|
||||
22
examples/material_gallery/apk/AndroidManifest.xml
Normal file
22
examples/material_gallery/apk/AndroidManifest.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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" />
|
||||
|
||||
<application android:icon="@mipmap/ic_launcher" android:label="Flutter Material" 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>
|
||||
<service
|
||||
android:name="org.domokit.sky.shell.UpdateService"
|
||||
android:exported="false"
|
||||
android:process=":remote"/>
|
||||
</application>
|
||||
</manifest>
|
||||
BIN
examples/material_gallery/apk/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
examples/material_gallery/apk/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
examples/material_gallery/apk/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
examples/material_gallery/apk/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
examples/material_gallery/apk/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
examples/material_gallery/apk/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
BIN
examples/material_gallery/apk/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
examples/material_gallery/apk/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
BIN
examples/material_gallery/apk/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
examples/material_gallery/apk/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
@@ -1,4 +1,6 @@
|
||||
name: material_gallery
|
||||
assets:
|
||||
- assets/flutter_logo.png
|
||||
material-design-icons:
|
||||
- name: navigation/arrow_drop_down
|
||||
- name: navigation/cancel
|
||||
|
||||
@@ -19,7 +19,7 @@ class GalleryPage extends StatefulComponent {
|
||||
class _GalleryPageState extends State<GalleryPage> {
|
||||
Widget _buildDrawer() {
|
||||
List<Widget> items = <Widget>[
|
||||
new DrawerHeader(child: new Text('Material demos')),
|
||||
new DrawerHeader(child: new Text('Flutter Material demos')),
|
||||
];
|
||||
|
||||
for (WidgetDemo demo in config.demos) {
|
||||
@@ -31,6 +31,20 @@ class _GalleryPageState extends State<GalleryPage> {
|
||||
));
|
||||
}
|
||||
|
||||
// TODO(eseidel): We should make this into a shared DrawerFooter.
|
||||
items.add(new DrawerDivider());
|
||||
items.add(new DrawerItem(child: new Flex([
|
||||
new Text("Made with Flutter "),
|
||||
new Container(
|
||||
margin: const EdgeDims.symmetric(horizontal: 5.0),
|
||||
child: new AssetImage(
|
||||
name: 'assets/flutter_logo.png',
|
||||
height: 16.0,
|
||||
fit: ImageFit.contain
|
||||
)
|
||||
)
|
||||
])));
|
||||
|
||||
return new Drawer(child: new Block(items));
|
||||
}
|
||||
|
||||
@@ -57,7 +71,7 @@ class _GalleryPageState extends State<GalleryPage> {
|
||||
Widget build(BuildContext context) {
|
||||
return new Scaffold(
|
||||
toolBar: new ToolBar(
|
||||
center: new Text(config.active?.title ?? 'Material gallery'),
|
||||
center: new Text(config.active?.title ?? 'Flutter Material gallery'),
|
||||
tabBar: _buildTabBar()
|
||||
),
|
||||
drawer: _buildDrawer(),
|
||||
|
||||
Reference in New Issue
Block a user